Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9250712pxu; Mon, 28 Dec 2020 10:26:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBCf1toUctb//RIzbOvNpuOsVSxLcPcfY2JUB1fA0ugO/Mi7CdowIHcl7ZMPW3HVYOa57m X-Received: by 2002:a17:906:c82c:: with SMTP id dd12mr43300047ejb.66.1609180002560; Mon, 28 Dec 2020 10:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609180002; cv=none; d=google.com; s=arc-20160816; b=ZuYz47nVbBYCRyIZcP48xIGT2ZI9CJV89P3rmSLo+C7gtu66L4R1nHZvISC532ScUU 5/6YansuwjkOoe61NvwHUFSg82gH6+EGMQOTFZ6LTlyFs5Gh5tmbm7z0+nPEquExijmg aRzVmFOR8vRG2kGCWpLPtR4eVDl4EYZrx/mVUSkXh8PGnKQh2PRHinkyEacjX/GqYWau MM+Pko11mfoPIaCZYZedgXawOJjWFgj2KFDKIX19xOahHwtgBcoOzGrV46eZAr47g3T3 dy24u1kBCqtHUBQwIjeyurXVRmi+ketzG/vycj2+5yHVTbVjr7H1gF77AcmpIRaH1QRE BehA== 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=ZmtemL660PJSgtfDMMaBGAqCaQn62Hffp30ETLNjbpo=; b=K4mH2dblF8xxWsJpJeMdPOxAUxwh1gZ0YWuyQt49DqAM8PnBjJccnHBAsdWulFz2q8 gePxkJvN9TisfN5TygqvtU86mRP1OPca5zfJp4PXydzlaPQqLNtoO382hq3wQk3BVFcr ZiRY1N59IYJy/7/Aguz1SthDiPzXK2GYy8k8rpYh5J/1dsCEHIzsGAXMlH5gHDrwju8g /vX4bxc8BwVaP6w9IbCZ1GbLNq1iokS3t7pPaOsDX16noDs0OgD9Ikech5bEqayZO+st 5DI6MKah01I3J/xQhT1RjBk/l20q649+rQugUj1rmgU0u1k4xyRl6T1PPVokiHErsVTt 88dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tdWieSvL; 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 88si13959398ede.335.2020.12.28.10.26.20; Mon, 28 Dec 2020 10:26:42 -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=tdWieSvL; 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 S2387718AbgL1NcW (ORCPT + 99 others); Mon, 28 Dec 2020 08:32:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:60604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390914AbgL1Nbo (ORCPT ); Mon, 28 Dec 2020 08:31:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5FD342063A; Mon, 28 Dec 2020 13:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609162263; bh=hkzgwEg1qwZVnb6QJyZ+P4jfPhQ6upQiXNJsOzx6/wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tdWieSvL7kIAseqNZygetaVzCyPgbvy/8rPcODx6r4MjFAkmJM5goXLbHvZ2rAvxk xrShIgCb8vCjSqhIZQ1n5r6s3iiFEypWYNmGfivS1wDrLoNZCacbmsj7+bfnxBC4lV d8a779LRKgTmZ9GCDBuynANM7wa+4MooAygGPTxw= 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.19 243/346] watchdog: coh901327: add COMMON_CLK dependency Date: Mon, 28 Dec 2020 13:49:22 +0100 Message-Id: <20201228124931.519376229@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124919.745526410@linuxfoundation.org> References: <20201228124919.745526410@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 9feeb8e82d500..fa7f4c61524d9 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -515,7 +515,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