gdbstub fails to compile
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
Quoted 8 lines · Olaf Hering
In current xen-unstable
xen/commons/gdbstub.cfails 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_enableis 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
PATCH 1/1 xen/gdb: Fix gdbstub build c/s c8177e691f
In reply to Olaf HeringThat 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.
--- xen/common/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/gdbstub.c +1 -1
@@ -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