Skip to contentSkip to conversation

gdbstub fails to compile

PATCH New Olaf Hering 2 participants 3 messages Aug 26, 2013

lore
Share & tools
lore
#0 lore raw

In current xen-unstable xen/commons/gdbstub.c fails to compile:

gdbstub.c: In function '__trap_to_gdb':
gdbstub.c:610:5: error: implicit declaration of function 'watchdog_disable' [-Werror=implicit-function-declaration] gdbstub.c:610:5: error: nested extern declaration of 'watchdog_disable' [-Werror=nested-externs] gdbstub.c:636:5: error: implicit declaration of function 'watchdog_enable' [-Werror=implicit-function-declaration] gdbstub.c:636:5: error: nested extern declaration of 'watchdog_enable' [-Werror=nested-externs]

Its the first time I compile xen-unstable since 4.3.0, so I cant tell when this error was introduced. I see watchdog_enable is called from a few places, so its maybe just a missing include.

Olaf

#1 lore raw
Quoted 8 lines · Olaf Hering

In current xen-unstable xen/commons/gdbstub.c fails to compile:

gdbstub.c: In function '__trap_to_gdb':
gdbstub.c:610:5: error: implicit declaration of function 'watchdog_disable' [-Werror=implicit-function-declaration] gdbstub.c:610:5: error: nested extern declaration of 'watchdog_disable' [-Werror=nested-externs] gdbstub.c:636:5: error: implicit declaration of function 'watchdog_enable' [-Werror=implicit-function-declaration] gdbstub.c:636:5: error: nested extern declaration of 'watchdog_enable' [-Werror=nested-externs]

Quoted 5 lines

Its the first time I compile xen-unstable since 4.3.0, so I cant tell when this error was introduced. I see watchdog_enable is called from a few places, so its maybe just a missing include.

Olaf

That would be my fault (and very recently). Patch on its way.

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

PATCH 1/1 xen/gdb: Fix gdbstub build c/s c8177e691f

In reply to Olaf Hering

That changeset moved the watchdog functions from nmi.h to their own watchdog.h. I thought I had updated all relevant header files and the compiler was happy as well. However, gdbstub is not even compiled by default, and I accidentally missed it.

CC Olaf Hering <[email protected]>
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
---
 xen/common/gdbstub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/gdbstub.c +1 -1
index 2baa91a..67ff726 100644
@@ -38,7 +38,7 @@
 #include <xen/spinlock.h>
 #include <xen/serial.h>
 #include <xen/irq.h>
-#include <xen/nmi.h>
+#include <xen/watchdog.h>
 #include <asm/debugger.h>
 #include <xen/init.h>
 #include <xen/smp.h>
Signature · 1 line
1.7.10.4