All of lore.kernel.org
 help / color / mirror / Atom feed
* gdbstub fails to compile
@ 2013-08-26 19:44 Olaf Hering
  2013-08-26 19:47 ` Andrew Cooper
  2013-08-26 20:02 ` [PATCH] xen/gdb: Fix gdbstub build c/s c8177e691f Andrew Cooper
  0 siblings, 2 replies; 3+ messages in thread
From: Olaf Hering @ 2013-08-26 19:44 UTC (permalink / raw)
  To: xen-devel

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

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

* Re: gdbstub fails to compile
  2013-08-26 19:44 gdbstub fails to compile Olaf Hering
@ 2013-08-26 19:47 ` Andrew Cooper
  2013-08-26 20:02 ` [PATCH] xen/gdb: Fix gdbstub build c/s c8177e691f Andrew Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2013-08-26 19:47 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel

On 26/08/2013 20:44, Olaf Hering wrote:
> 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

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

>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

* [PATCH] xen/gdb: Fix gdbstub build c/s c8177e691f
  2013-08-26 19:44 gdbstub fails to compile Olaf Hering
  2013-08-26 19:47 ` Andrew Cooper
@ 2013-08-26 20:02 ` Andrew Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2013-08-26 20:02 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Olaf Hering, Keir Fraser, Jan Beulich

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.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Olaf Hering <olaf@aepfle.de>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
---
 xen/common/gdbstub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/gdbstub.c b/xen/common/gdbstub.c
index 2baa91a..67ff726 100644
--- a/xen/common/gdbstub.c
+++ b/xen/common/gdbstub.c
@@ -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>
-- 
1.7.10.4

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

end of thread, other threads:[~2013-08-26 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 19:44 gdbstub fails to compile Olaf Hering
2013-08-26 19:47 ` Andrew Cooper
2013-08-26 20:02 ` [PATCH] xen/gdb: Fix gdbstub build c/s c8177e691f Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.