From: Philippe Mathieu-Daudé Date: Tue, 11 Mar 2025 08:57:38 +0000 (+0100) Subject: hw/vfio/common: Include missing 'system/tcg.h' header X-Git-Tag: v10.0.0-rc0~9^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=514c29678715c6b27e09fef8e3594dc1dba6820b;p=thirdparty%2Fqemu.git hw/vfio/common: Include missing 'system/tcg.h' header Always include necessary headers explicitly, to avoid when refactoring unrelated ones: hw/vfio/common.c:1176:45: error: implicit declaration of function ‘tcg_enabled’; 1176 | tcg_enabled() ? DIRTY_CLIENTS_ALL : | ^~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Eric Auger Message-Id: <20250307180337.14811-2-philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20250311085743.21724-4-philmd@linaro.org Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 7a4010ef4e..b1596b6bf6 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -42,6 +42,7 @@ #include "migration/misc.h" #include "migration/blocker.h" #include "migration/qemu-file.h" +#include "system/tcg.h" #include "system/tpm.h" VFIODeviceList vfio_device_list =