hw/ppc/spapr: Include missing 'sysemu/tcg.h' header
PATCH 1/1 hw/ppc/spapr: Include missing 'sysemu/tcg.h' header
"sysemu/tcg.h" declares tcg_enabled(), and is implicitly included. Include it explicitly to avoid the following error when refactoring headers:
hw/ppc/spapr.c:2612:9: error: call to undeclared function 'tcg_enabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (tcg_enabled()) {
^Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)
hw/ppc/spapr.c +1 -0
@@ -35,6 +35,7 @@#include "sysemu/sysemu.h" #include "sysemu/hostmem.h" #include "sysemu/numa.h" +#include "sysemu/tcg.h" #include "sysemu/qtest.h" #include "sysemu/reset.h" #include "sysemu/runstate.h"
Signature · 1 line
2.41.0
Quoted 9 lines · Philippe Mathieu-Daudé
"
sysemu/tcg.h" declarestcg_enabled(), and is implicitly included. Include it explicitly to avoid the following error when refactoring headers:hw/ppc/spapr.c:2612:9: error: call to undeclared function 'tcg_enabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (tcg_enabled()) { ^Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Harsh Prateek Bora <[email protected]>
Quoted 16 lines
--- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)hw/ppc/spapr.c +1
-0@@ -35,6 +35,7 @@#include "sysemu/sysemu.h" #include "sysemu/hostmem.h" #include "sysemu/numa.h" +#include "sysemu/tcg.h" #include "sysemu/qtest.h" #include "sysemu/reset.h" #include "sysemu/runstate.h"