From patchwork Mon Dec 28 12:47:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352687 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9801059jai; Mon, 28 Dec 2020 06:48:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjSFR1RyrC7m01dqKC3/KzUim8XbgApag5qC26u0q4MDbZCH+FQUxC3iiySO42hvM8aYEj X-Received: by 2002:a17:906:74e:: with SMTP id z14mr40853427ejb.362.1609166930678; Mon, 28 Dec 2020 06:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166930; cv=none; d=google.com; s=arc-20160816; b=NrwiRA8dtc7vVEQdmgigToig0MUxJWqAJxxP7wvDTVStxplAa+/wdH4ZEJEUgm2Wf3 FnzPavCv7eaFmZiU6aKag1L8hHsd6uoS6aMNGIR9ieP2GLQhZm9IwHIWl/AkuHE9Uzhv +GA6grLSNDYt4UPnXbV+xvoOhbF5ExzRR17UGZX/3oi1yUPnDEPOGb+ZaCb45mbhf25/ 3HbzPq/urlXfh7QrD9YUUrGYzgoaEYWkcZuxVvlDAXu8gTfunT2weO8lmtZLxKwMfs5p VYpFhiQVZFL1/hiwPMkfMqoHsQqjTD3nSN+C3MM2ZXg48wsPDI3A77leAFgWxcLvvnGh DRKg== 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=V/xEIj2fZTHgxgm+ReGBqBk8LM6uyGuoW1RUyfExB6YBo4BLE+DFYozdWhIxIeAt+r k6+m+MYQaYn42gm7pzYnSTJnEU0RhY24Yj+/S/M7gpwW3Uks2n+gKHjFId7IhcYBs1bD ZcF7oOlhbknt+eAIscJrHot5zEgM0mrkXN606E1voGw3Vc+dE0rsCAntyEGLgtUn6w1J SzEFGhbnjIDUE4IqmBqQfsmMg2VCKrMF0cwuF18IMYMthhjGBUrSUp5kkAUW5PlW8YYp dBilzaf03wfUcBGnY93FOvgWQNOYa/Rr2Yjc6ZGclA+sOYt9pfrbJKjcCAvLorWsm60F Qk4Q== 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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 i8si21341787edv.161.2020.12.28.06.48.50; Mon, 28 Dec 2020 06:48:50 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S2502782AbgL1Orw (ORCPT + 14 others); Mon, 28 Dec 2020 09:47:52 -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 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.27.0 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