Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1526466 > unrolled thread

undefined reference to `devm_watchdog_register_device'

Started byVegard Nossum <vegard.nossum@gmail.com>
First post2016-11-21 10:10 +0100
Last post2016-11-21 14:20 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  undefined reference to `devm_watchdog_register_device' Vegard Nossum <vegard.nossum@gmail.com> - 2016-11-21 10:10 +0100
    Re: undefined reference to `devm_watchdog_register_device' "Rafael J. Wysocki" <rafael@kernel.org> - 2016-11-21 14:10 +0100
      Re: undefined reference to `devm_watchdog_register_device' Mika Westerberg <mika.westerberg@linux.intel.com> - 2016-11-21 14:20 +0100

#1526466 — undefined reference to `devm_watchdog_register_device'

FromVegard Nossum <vegard.nossum@gmail.com>
Date2016-11-21 10:10 +0100
Subjectundefined reference to `devm_watchdog_register_device'
Message-ID<sFSLT-7Fl-17@gated-at.bofh.it>
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?


Vegard

[toc] | [next] | [standalone]


#1526656

From"Rafael J. Wysocki" <rafael@kernel.org>
Date2016-11-21 14:10 +0100
Message-ID<sFWwa-1AV-29@gated-at.bofh.it>
In reply to#1526466
On Mon, Nov 21, 2016 at 10:07 AM, Vegard Nossum <vegard.nossum@gmail.com> 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?

[toc] | [prev] | [next] | [standalone]


#1526666

FromMika Westerberg <mika.westerberg@linux.intel.com>
Date2016-11-21 14:20 +0100
Message-ID<sFWFQ-1DY-11@gated-at.bofh.it>
In reply to#1526656
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@gmail.com> 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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web