From: Philippe Mathieu-Daudé Date: Wed, 2 Apr 2025 11:17:28 +0000 (+0200) Subject: system/hvf: Avoid including 'cpu.h' X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0af34b1daccb08649a5a3c5d2d3843e5efc89ec9;p=thirdparty%2Fqemu.git system/hvf: Avoid including 'cpu.h' "system/hvf.h" doesn't need to include a full "cpu.h", only "exec/vaddr.h" and "qemu/queue.h" are required. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Message-Id: <20250403235821.9909-27-philmd@linaro.org> --- diff --git a/include/system/hvf.h b/include/system/hvf.h index 730f927f03..d50049e1a1 100644 --- a/include/system/hvf.h +++ b/include/system/hvf.h @@ -14,10 +14,11 @@ #define HVF_H #include "qemu/accel.h" +#include "qemu/queue.h" +#include "exec/vaddr.h" #include "qom/object.h" #ifdef COMPILING_PER_TARGET -#include "cpu.h" #ifdef CONFIG_HVF extern bool hvf_allowed; diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h index 42ae18433f..8c8b84012d 100644 --- a/include/system/hvf_int.h +++ b/include/system/hvf_int.h @@ -11,6 +11,8 @@ #ifndef HVF_INT_H #define HVF_INT_H +#include "qemu/queue.h" + #ifdef __aarch64__ #include typedef hv_vcpu_t hvf_vcpuid;