Skip to contentSkip to conversation

stubs: Optimize dependencies for gdbstub.c

PATCH Applied Stefan Weil 2 participants 2 messages Feb 20, 2014 – Mar 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubs: Optimize dependencies for gdbstub.c

It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning from static code analyzers and avoids mismatching declarations for xml_builtin.

---
 stubs/gdbstub.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
stubs/gdbstub.c +3 -1
index c1dbfe7..f6a4553 100644
@@ -1,4 +1,6 @@
-#include "qemu-common.h"
+#include "stdbool.h"            /* bool (in exec/gdbstub.h) */
+#include "stddef.h"             /* NULL */
+#include "exec/gdbstub.h"       /* xml_builtin */
 
 const char *const xml_builtin[][2] = {
   { NULL, NULL }
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 3 lines · Stefan Weil

It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning from static code analyzers and avoids mismatching declarations for xml_builtin.

Applied to -trivial, thanks!

/mjt