[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <36720fae-ef20-61d4-1d9d-421e7199a0eb@infradead.org>
Date: Wed, 28 Aug 2019 10:18:56 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>,
YueHaibing <yuehaibing@...wei.com>
Cc: a.zummo@...ertech.it, bruno.thomsen@...il.com, linux@...ck-us.net,
linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] rtc: pcf2127: Fix build error without
CONFIG_WATCHDOG_CORE
On 8/23/19 7:05 AM, Alexandre Belloni wrote:
> On 23/08/2019 20:45:53+0800, YueHaibing wrote:
>> If WATCHDOG_CORE is not set, build fails:
>>
>> drivers/rtc/rtc-pcf2127.o: In function `pcf2127_probe.isra.6':
>> drivers/rtc/rtc-pcf2127.c:478: undefined reference to `devm_watchdog_register_device'
>>
>> Add WATCHDOG_CORE Kconfig dependency to fix this.
>>
>> Reported-by: Hulk Robot <hulkci@...wei.com>
>> Fixes: bbc597561ce1 ("rtc: pcf2127: add watchdog feature support")
>> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
>> ---
>> drivers/rtc/Kconfig | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
>> index 25af63d..9dce7dc 100644
>> --- a/drivers/rtc/Kconfig
>> +++ b/drivers/rtc/Kconfig
>> @@ -886,6 +886,8 @@ config RTC_DRV_DS3232_HWMON
>> config RTC_DRV_PCF2127
>> tristate "NXP PCF2127"
>> depends on RTC_I2C_AND_SPI
>> + depends on WATCHDOG
>
> Definitively not, I fixed it that way:
> + select WATCHDOG_CORE if WATCHDOG
>
>
No, that's not a fix. The build error still happens with that patch applied.
--
~Randy
Powered by blists - more mailing lists