Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9420826pxu; Mon, 28 Dec 2020 15:57:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJymyJ0dp5fDACgyALthmL91l7QXuYG16jL1DDv9LdE2Cf7BW8OdZgHJ20KgQ5R1aPm0u9GY X-Received: by 2002:a17:906:5002:: with SMTP id s2mr42215013ejj.16.1609199879251; Mon, 28 Dec 2020 15:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609199879; cv=none; d=google.com; s=arc-20160816; b=dvhGMxXuAG6/GNvE8zYiQXt3ZbZy+TLAhbsYkOYwqpOADMdVlk4T8ClBUgpZDlGVmh Mns1DEn0BzgyWgqGkRPsPmHsNkeQajmwi8zW0CDIe5zjILOss1tZ7r9Q4VzVLqcLRx5j 1WE7InqXJBVShYvzo86HjmnvPG8xJwsvXJ9jKo4VCM7XtIIfrJRwD+xPEgImSE7adE3d FK3DEcPbPb0QySl6zSI6QOUm7wvByL9+m0e+mtH2pmEemNfg/PlCRwQ4tltiasHH1kJ8 xcQYhiC2GuhjBOLsw6HHeQAodMIcewdNhlGWV2rcgff94G6ihKaNgQ0azsDb4JInYzbA oncQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UJXnWPsKzpRS9FPqYCDJtSwsIgHPzSN2i5KdH6dv4uE=; b=Ls9Zvld4LjuUtJHhLWaiPL7lGCLah7Qqv4YVzXk3+FTllPDoGO62HhNAZXDgmzz/BQ WY8ptp57j/hZKqxHd6zjCjP31iBU+gI12lcpIPFSXseAcywAys6Ghtya44MyG867U0+2 Q+GtpUxML2tI7OurfBGHq5Et9Muj/FfcXwPcW9mzrymIzlbCGqjnAIuPjlIrT1Vp1Iaw +BCTwPLxRkjYVUAmL600w3Ud42vYxbruwU7SOiEexvjt1/3UPwFv4XvygfUvQJMoq8+x fjepYXt2LiD5LQOfpFp5seOq900FMW+4bjZkoAfYSykqLaLiP53F/1kAhNUQrr3CEcbJ O6Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QS6QJqqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si17389362eds.116.2020.12.28.15.57.37; Mon, 28 Dec 2020 15:57:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QS6QJqqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503705AbgL1Ory (ORCPT + 99 others); Mon, 28 Dec 2020 09:47:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:58350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439199AbgL1OW7 (ORCPT ); Mon, 28 Dec 2020 09:22:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F64420791; Mon, 28 Dec 2020 14:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165364; bh=gALVSn0/g2Kn0q7dE4xmDwxMhZnrnWAVGmZezn35914=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QS6QJqqsPsaYYaK9LFS4+M2wi9DvS7SlsL7r9JXtw1if8wAqcXoxDSEZ5HHj3z7mn TzanqCocR9lpI/YkNYXX8NJpErAAYNjpfZ5Hre2UOmzUA4cEQKHsViQf+1edlC246+ /mNub7mAB/NCA07/jAroorGSn4JLGI/gRfuc/9gw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.10 477/717] watchdog: coh901327: add COMMON_CLK dependency Date: Mon, 28 Dec 2020 13:47:55 +0100 Message-Id: <20201228125043.819226318@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 36c47df85ee8e1f8a35366ac11324f8875de00eb ] clang produces a build failure in configurations without COMMON_CLK when a timeout calculation goes wrong: arm-linux-gnueabi-ld: drivers/watchdog/coh901327_wdt.o: in function `coh901327_enable': coh901327_wdt.c:(.text+0x50): undefined reference to `__bad_udelay' Add a Kconfig dependency to only do build testing when COMMON_CLK is enabled. Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible") Signed-off-by: Arnd Bergmann Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20201203223358.1269372-1-arnd@kernel.org Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index f8e9be65036ae..db935d6b10c27 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -632,7 +632,7 @@ config SUNXI_WATCHDOG config COH901327_WATCHDOG bool "ST-Ericsson COH 901 327 watchdog" - depends on ARCH_U300 || (ARM && COMPILE_TEST) + depends on ARCH_U300 || (ARM && COMMON_CLK && COMPILE_TEST) default y if MACH_U300 select WATCHDOG_CORE help -- 2.27.0