From patchwork Thu Dec 3 22:33:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 336955 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp676568ilb; Thu, 3 Dec 2020 14:36:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz024eBJQsYX/N/jNe6H/aKWTmTpg5Pkql3KAo5crlu3QeC5GU9rkXKrYSWEJU/nP9CibiH X-Received: by 2002:a50:9310:: with SMTP id m16mr354002eda.94.1607034980272; Thu, 03 Dec 2020 14:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607034980; cv=none; d=google.com; s=arc-20160816; b=scGJ+N7uA2pzWPs/og5kf4alNQ5zPWf5M6poiTg4Ftze/PFz9BxxyPEGUZ7psep/ih LE+16yCDITSvBJq+FcF7o+9cupqGug3TiREz6Cs5BsHuyQc0ow4+YeRJTDEcgfpy7FgC kUfO+1esu3bk/1hCM/Es78lj/04s+iISG6eDW0qdlB1CJ0ziQ8/tpX/YiMcYKtJ5rRNG ZB803+3SGiJgcGpmaNSWEXZtwiRM2G6PAzBeZvQX7jax152nStZ3M/O2U6FPaZHQ7Nhh 2Cqd99rlYLuYnH/tNAYhRxxsfy/tYfjWU87v1n+30SzPwyYBngTkfTPqXpuz/u8IUTlx PUyg== 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 :message-id:date:subject:cc:to:from; bh=vgS5QGifSsfp1J0koapQme0k08NRBHSalGfb+17XE4o=; b=Jh/kvxqkKvKI4WhVZPX0HPaMFQlQjeJcdBKkWVsUS6l8VcZVKWBGeIDK/yjjC93cv8 DrvN0b5TG8rQZs0smDCWVjzHokyWC9NbFkvT/HYXgvnTkSf4LkO9HivDpfifkXhVlIBI S+2hG4Rwr7dbQDDIaCoL2sz/W+ZmSwckLKlRWCqMHXer+sNudlUiDA02gdNSGzVWnpdn 6ihQYZwYF+lAOXSkxfbP5WtsuBi+HfFhkG8uiqtkvOfRuFQXW1Cw7dPQ7b18sC6cBP1O Mc6JX4OlowfBY7ZRbPa2f5ZTD8Er6Gck1C6vrDKzIikpVm4zxuPlZzQOnS8n4B55RikR sShg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-watchdog-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si216173ejs.714.2020.12.03.14.36.20 for ; Thu, 03 Dec 2020 14:36:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-watchdog-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-watchdog-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731921AbgLCWen (ORCPT ); Thu, 3 Dec 2020 17:34:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:56064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729313AbgLCWen (ORCPT ); Thu, 3 Dec 2020 17:34:43 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Wim Van Sebroeck , Guenter Roeck , Nathan Chancellor , Nick Desaulniers Cc: Arnd Bergmann , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] watchdog: coh901327: add COMMON_CLK dependency Date: Thu, 3 Dec 2020 23:33:42 +0100 Message-Id: <20201203223358.1269372-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org From: Arnd Bergmann 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 --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 Reviewed-by: Guenter Roeck diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 8bdbd125821b..32fa6de7b820 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -631,7 +631,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