linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] xen_wdt: fix build failure
@ 2018-02-19 14:38 Radu Rendec
  2018-02-19 14:38 ` [PATCH 1/1] watchdog: xen_wdt: fix potential " Radu Rendec
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Rendec @ 2018-02-19 14:38 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Wim Van Sebroeck, linux-watchdog

Hi Guenter,

I just saw Matteo Croce's email/patch on the i6300esb build failure and
I realized that xen_wdt has the exact same problem. I forgot to add a
dependency on CONFIG_WATCHDOG_CORE for both drivers when I ported them
to use the watchdog core.

This patch is the xen_wdt equivalent of Matteo Croce's patch for
i6300esb.

Thanks!

Radu Rendec (1):
  watchdog: xen_wdt: fix potential build failure

 drivers/watchdog/Kconfig | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] watchdog: xen_wdt: fix potential build failure
  2018-02-19 14:38 [PATCH 0/1] xen_wdt: fix build failure Radu Rendec
@ 2018-02-19 14:38 ` Radu Rendec
  2018-02-19 15:48   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Rendec @ 2018-02-19 14:38 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Wim Van Sebroeck, linux-watchdog

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>
---
 drivers/watchdog/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index a16bad78679b..2953e9fbb818 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1838,6 +1838,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
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] watchdog: xen_wdt: fix potential build failure
  2018-02-19 14:38 ` [PATCH 1/1] watchdog: xen_wdt: fix potential " Radu Rendec
@ 2018-02-19 15:48   ` Guenter Roeck
  0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2018-02-19 15:48 UTC (permalink / raw)
  To: Radu Rendec; +Cc: Wim Van Sebroeck, linux-watchdog

On 02/19/2018 06:38 AM, Radu Rendec wrote:
> 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>

Sorry, should have caught that during the review.

Guenter

> ---
>   drivers/watchdog/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index a16bad78679b..2953e9fbb818 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1838,6 +1838,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
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-19 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-19 14:38 [PATCH 0/1] xen_wdt: fix build failure Radu Rendec
2018-02-19 14:38 ` [PATCH 1/1] watchdog: xen_wdt: fix potential " Radu Rendec
2018-02-19 15:48   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).