From: Philippe Mathieu-Daudé Date: Thu, 28 Mar 2024 08:19:16 +0000 (+1000) Subject: hw/ppc/spapr: Include missing 'sysemu/tcg.h' header X-Git-Tag: v9.0.0-rc2~6^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beb0b62c3e0f7e486eac680f41b140f4ed492f59;p=thirdparty%2Fqemu.git 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()) { ^ Reviewed-by: Harsh Prateek Bora Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Nicholas Piggin --- diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c417f9dd523..e9bc97fee08 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -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"