Re: undefined reference to `devm_watchdog_register_device'
From: Mika Westerberg
Date: Mon Nov 21 2016 - 08:19:51 EST
On Mon, Nov 21, 2016 at 02:04:34PM +0100, Rafael J. Wysocki wrote:
> 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?
That's right - we should select WATCHDOG_CORE there.
I'll submit a patch fixing this shortly.