From patchwork Mon Jul 8 12:41:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168624 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp6502673ock; Mon, 8 Jul 2019 05:42:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSB2ZBA3dnchcOcLd1uKvxsvcG+9sxeENlnXWRB8o+/IMbxfMQ7aH7x6ClcHaCmDddhLXe X-Received: by 2002:a63:b20f:: with SMTP id x15mr24131845pge.453.1562589775494; Mon, 08 Jul 2019 05:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562589775; cv=none; d=google.com; s=arc-20160816; b=wgtUOt95p5mlWDFElohY/EClFm61ZP/XRVX6TrjvTJBoiB16it+a7jpAT4Cpl1R+zk 0tyhjehrjSyE7t05bppM7UPdN4BWr5WWalOF8yedz2Y4MZkq4pVLhb9GXk5T2yYUtJFS tj7VoN29/OMRJIx+Gr3AncdDzCvmSZUi58769mMRibHi7CLcQjIUTh8hRIBARQJbbt/w wYn9DxVt+pwqC4jFwjCN31gsf4yEgSv+rqFTx8fsYhPvcnu6VM6DJSIhaegp4Pa5X88h MU6u6VUZK4vNzMXNE4fnxfz2OJtkb9hGG4IAfMv14k+lu/oCI6+Xd12D6j6iyd7UqjXM B9KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3sUfHOBdSbO8DZoMZltwYQNbjHQy0Y7Apkaqhw78RSc=; b=xO0g/D+QuMAx9WeVgp8DTTIjR3k9YZCcSiCJrBrMmfoviId17L02tzFFZV50OeuswW 3jTLyhmrzHl2mL2J305vFDrmoZL3kkS9u1oGIG775vi/OUshBP/EFlOhBD8FyFUgwm03 zZ2giXJJOO89IlBtOUrd7TlBfSglCh2pH119gw7arJ5QGBwboWwCZIqmOm6TKBPSoUzX ADXHIt6c2KMQUrwihMnqrCr3ifYtDCh73f714d6yqvxgbuBE3XxATmNuyYBznM3xUHV7 ZmdqgzoKV1GWGA7WCPG606B4KIBNopUp4h3I1t8ydfD3016mqjQL3qLh6UOGV598TSsq isCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si19339419pgm.297.2019.07.08.05.42.54; Mon, 08 Jul 2019 05:42:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730918AbfGHMmx (ORCPT + 30 others); Mon, 8 Jul 2019 08:42:53 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:37055 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729752AbfGHMmx (ORCPT ); Mon, 8 Jul 2019 08:42:53 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1MGQaz-1hj2Ju1bB7-00GoDc; Mon, 08 Jul 2019 14:42:39 +0200 From: Arnd Bergmann To: Alessandro Zummo , Alexandre Belloni Cc: Arnd Bergmann , Matti Vaittinen , Lee Jones , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: bd70528: fix link error Date: Mon, 8 Jul 2019 14:41:52 +0200 Message-Id: <20190708124227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Qe+RTRpB/jWTzID6cxjWilp78Xy74 /M7ZGCG+tJZdMdCx/HmOjMvFcnAf1a0ato3Qlw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With CONFIG_BD70528_WATCHDOG=m, a built-in rtc driver cannot call into the low-level functions that are part of the watchdog module: drivers/rtc/rtc-bd70528.o: In function `bd70528_set_time': rtc-bd70528.c:(.text+0x22c): undefined reference to `bd70528_wdt_lock' rtc-bd70528.c:(.text+0x2a8): undefined reference to `bd70528_wdt_unlock' drivers/rtc/rtc-bd70528.o: In function `bd70528_set_rtc_based_timers': rtc-bd70528.c:(.text+0x50c): undefined reference to `bd70528_wdt_set' Add a Kconfig dependency on this driver, but still allow compile-testing without it. Fixes: 32a4a4ebf768 ("rtc: bd70528: Initial support for ROHM bd70528 RTC") Signed-off-by: Arnd Bergmann --- drivers/rtc/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.0 Reported-by: Arnd Bergmann diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 3bfc04a86529..7b071cc74422 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -498,8 +498,10 @@ config RTC_DRV_M41T80_WDT help If you say Y here you will get support for the watchdog timer in the ST M41T60 and M41T80 RTC chips series. + config RTC_DRV_BD70528 tristate "ROHM BD70528 PMIC RTC" + depends on BD70528_WATCHDOG || (COMPILE_TEST && !BD70528_WATCHDOG) help If you say Y here you will get support for the RTC on ROHM BD70528 Power Management IC.