stubs: Optimize dependencies for gdbstub.c
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.
Signed-off-by Stefan Weil <[email protected]>
--- stubs/gdbstub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
stubs/gdbstub.c +3 -1
@@ -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
Michael Tokarev
AppliedQuoted 3 lines · Stefan Weil
It does not need
qemu-common.h. Includingexec/gdbstub.hfixes a warning from static code analyzers and avoids mismatching declarations forxml_builtin.
Applied to -trivial, thanks!
/mjt