]> www.infradead.org Git - users/hch/misc.git/commitdiff
watchdog: xen_wdt: fix potential build failure
authorRadu Rendec <radu.rendec@gmail.com>
Mon, 19 Feb 2018 14:38:51 +0000 (14:38 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 19 Feb 2018 16:44:00 +0000 (17:44 +0100)
xen_wdt uses watchdog core functions (from watchdog_core.c) and, when
compiled without CONFIG_WATCHDOG_CORE being set, it produces the
following build error:

ERROR: "devm_watchdog_register_device" [drivers/watchdog/xen_wdt.ko] undefined!
ERROR: "watchdog_init_timeout" [drivers/watchdog/xen_wdt.ko] undefined!

Fix this by selecting CONFIG_WATCHDOG_CORE when CONFIG_XEN_WDT is set.

Fixes: 18cffd68e0c4 ("watchdog: xen_wdt: use the watchdog subsystem")
Signed-off-by: Radu Rendec <radu.rendec@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig

index 56f9e203049e281df60ec779afb5e2473afba301..3d984cdea0cad4fcb928943cf32aec3d198208ce 100644 (file)
@@ -1839,6 +1839,7 @@ config WATCHDOG_SUN4V
 config XEN_WDT
        tristate "Xen Watchdog support"
        depends on XEN
+       select WATCHDOG_CORE
        help
          Say Y here to support the hypervisor watchdog capability provided
          by Xen 4.0 and newer.  The watchdog timeout period is normally one