[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1c31d0e5-37f9-4608-3af3-ba94f3b764e9@roeck-us.net>
Date: Fri, 6 Dec 2019 06:05:13 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: YueHaibing <yuehaibing@...wei.com>, wim@...ux-watchdog.org,
andrew@...n.ch
Cc: linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] watchdog: tqmx86_wdt: Fix build error
On 12/6/19 4:42 AM, YueHaibing wrote:
> If TQMX86_WDT is y and WATCHDOG_CORE is m, building fails:
>
> drivers/watchdog/tqmx86_wdt.o: In function `tqmx86_wdt_probe':
> tqmx86_wdt.c:(.text+0x46e): undefined reference to `watchdog_init_timeout'
> tqmx86_wdt.c:(.text+0x4e0): undefined reference to `devm_watchdog_register_device'
>
> Select WATCHDOG_CORE to fix this.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Fixes: e3c21e088f89 ("watchdog: tqmx86: Add watchdog driver for the IO controller")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
> ---
> drivers/watchdog/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 1679e0d..20bd967 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1444,6 +1444,7 @@ config SMSC37B787_WDT
> config TQMX86_WDT
> tristate "TQ-Systems TQMX86 Watchdog Timer"
> depends on X86
> + select WATCHDOG_CORE
> help
> This is the driver for the hardware watchdog timer in the TQMX86 IO
> controller found on some of their ComExpress Modules.
>
Powered by blists - more mailing lists