Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9230290pxu; Mon, 28 Dec 2020 09:56:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3xCE/E/0IyQN9N5+xdCsocx9OQU+jQkkreDgJhmHynDPnlzzA6zTJlTKXFfHjGu/Kpd1u X-Received: by 2002:a05:6402:1caa:: with SMTP id cz10mr43455789edb.345.1609178160151; Mon, 28 Dec 2020 09:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609178160; cv=none; d=google.com; s=arc-20160816; b=AEud3YxSWSEERyyiXXpF3U1q5PdKQBgyvDB0uwIhy3alagGVfv5KfBMcL7ca+QDq3F Sfo4FvJMeqad0HsjsJ2Mk+oGzd/wEYAd3xrM0Z7csbZTAJ+S37H3zquhBnrHe9YTwNW4 D9PShRk+WfU1zD7ePTxsga87gKWLEaeHEF9v3FQA+zuVT6CyewNlKjM8P78hinb8a8Pt 1glpbaFGMw5FHxdnroy9JCCwIYIlFcjymVRS+qI90qnOmZrcXng3aBuX9aDJg+d1rb20 Zjw/fTML7UASjZh1X8j9YIWv/FiBH7xwP+VFgJNBywA2yfMOUQq5ZY9qk9iIRlENu202 sKtQ== 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=7XtR/AYEuHP6As/Zds+oS7wdePSXzPHTzz7RIAoIWdA=; b=NRQhfGJCQcRxvMfwvSlvq4GPCjL16B8aolrC6I68nLFMiDo4twF9ZWC7p+yDXvtjiC l5MPRGp9NxV04I4FO+1lkIkRQl+/+Pg/l/30AgDpsxpH9ILK9YH0un+Dq+wpHnPo/gnw N81jGywt8VAuQkp11j7ZKaIBC8PKFbe05DR8mLDqpY1V1swxQKBOnDnaviCP4EU2XZLL b9QXy2tBLArLjbP0PAOAhT0YN5RgN0ODWOscQmxrLZd3WBiRkLDW7No6MYUCosGdpil3 yl2iuk8NtEFrsszTNKVVQw6ABQrPw7OY6ltTuBjNsDVRTv3Ji7g/8XgHaUMLrQXF9IJH f+Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h1yL9L+l; 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 h17si20608220eds.404.2020.12.28.09.55.38; Mon, 28 Dec 2020 09:56:00 -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=h1yL9L+l; 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 S2387444AbgL1NR4 (ORCPT + 99 others); Mon, 28 Dec 2020 08:17:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:46160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731597AbgL1NRn (ORCPT ); Mon, 28 Dec 2020 08:17:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E36F7207F7; Mon, 28 Dec 2020 13:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161423; bh=iLYMcQBwitkX9mE9n7XKOk4UMtd6LaR0JtVOcPrOQiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h1yL9L+lGGXFdOa/PMI3fAbbVlKwErxQR1YufwCVEHZ8SxReii4rqDypiXaDc90tt dJqnZAFEFEUgEqUckfzRQlg/FgY5/jxyTMwcTA0GTJEFx+LNMIGl9edyzGUGelhLM5 2hW71p/NOKX+AkY7EhrkS3ewTmwdbeN1DVsr1ULQ= 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 4.14 169/242] watchdog: coh901327: add COMMON_CLK dependency Date: Mon, 28 Dec 2020 13:49:34 +0100 Message-Id: <20201228124913.018110163@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 529b0527bf2e2..de228669a2c8b 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -495,7 +495,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