Commit 4cd6764495f2b6c2d3dc4fdd339f78764f7995d5
Committed by
Wim Van Sebroeck
1 parent
7e2e5158e7
watchdog: xen_wdt: fix potential build failure
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>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/watchdog/Kconfig
... | ... | @@ -1839,6 +1839,7 @@ |
1839 | 1839 | config XEN_WDT |
1840 | 1840 | tristate "Xen Watchdog support" |
1841 | 1841 | depends on XEN |
1842 | + select WATCHDOG_CORE | |
1842 | 1843 | help |
1843 | 1844 | Say Y here to support the hypervisor watchdog capability provided |
1844 | 1845 | by Xen 4.0 and newer. The watchdog timeout period is normally one |