Re: undefined reference to `devm_watchdog_register_device'

From: Rafael J. Wysocki
Date: Mon Nov 21 2016 - 08:04:47 EST


On Mon, Nov 21, 2016 at 10:07 AM, Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:
> Hi,
>
> I updated my config and set CONFIG_WDAT_WDT=y, got this:
>
> drivers/built-in.o: In function `wdat_wdt_probe':
> /home/vegard/linux/drivers/watchdog/wdat_wdt.c:444: undefined
> reference to `devm_watchdog_register_device'
> Makefile:962: recipe for target 'vmlinux' failed
> make: *** [vmlinux] Error 1
>
> Looks like it's missing a select for WATCHDOG_CORE in the Kconfig?

Mika?