From patchwork Mon Dec 28 12:49:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352644 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9749552jai; Mon, 28 Dec 2020 05:33:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyENogrWlwiZ3ReLx5UgmZEY/C6rqmG1THgO9JPRfHCNXW4U/6UAeYH8c1neR4Bv4frHHFu X-Received: by 2002:a05:6402:379:: with SMTP id s25mr43679876edw.367.1609162382360; Mon, 28 Dec 2020 05:33:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609162382; cv=none; d=google.com; s=arc-20160816; b=AQbBq59SMFLrwVugUtLLzU3/39Ninnv42pHsctGXEHFN08Zkx+0dp9x/BP+/kQM0U2 ogTzIRQAE9P6/hzN3nHoJ2uQP/IQqkk+N+BBD/WF2yniIBDRNhjvbd8nBdKo3Oy70I4u mBkxLqNn1N3Aczceok0KPboY+Z50Vfvk6TM6s170BFR4Pnzilii8aifvcOj2Eb7Uwrfl GCqCj7DAKa4NDfiLAX7DU7JccxV3MTcixuxOmg7JWpjwM1dQma0r5UU0byamyju3eCXa 2ABxa41V56kwKr/txTP78AjjSdywXwi6sT9/b7MN2lyoNoIpEjvYeQ3iMFBZOOZSdejl KFMQ== 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=O+aeGnIFJ3xmNE/Hf/I8EZlZu9h6ZCmav1bE2zW0hEePgl/LxtesP2bFIA5nB53fHq B4ZVHGIPFQOcaAPc7MtmPLPt1pA9swkAOkymA8gKtYj4CpHbmjf+I51MMRYgMqOAxAcN 8eYhQXWMwa0mBzb4G2L/D/NJ+wqiw1TZEH4lmjVAqImFvdRJUM4HqWysCZaxN4bKvkGi WY/5GwWCbpAfYQb0y43RUzyyCu4MI9po31IfoUxJauGXe90ibgXUPrT9WlmYcQ18vmt1 zC513wVzR4cpjZ/m/OOcd80hbfCANn+R+iQ9hGutIDLEh2lQ9H+sZDQqmERdhPdeIhFC DMjA== 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 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 v8si17648628ejq.369.2020.12.28.05.33.02; Mon, 28 Dec 2020 05:33:02 -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=tdWieSvL; 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 S2390920AbgL1Nbr (ORCPT + 14 others); Mon, 28 Dec 2020 08:31:47 -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 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 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