]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm/qmp: Include missing 'cpu.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 29 May 2025 16:45:12 +0000 (17:45 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 29 May 2025 16:45:12 +0000 (17:45 +0100)
arm-qmp-cmds.c uses ARM_MAX_VQ, which is defined in "cpu.h".
Include the latter to avoid when refactoring unrelated headers:

  target/arm/arm-qmp-cmds.c:83:19: error: use of undeclared identifier 'ARM_MAX_VQ'
     83 | QEMU_BUILD_BUG_ON(ARM_MAX_VQ > 16);
        |                   ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250513173928.77376-8-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/arm-qmp-cmds.c

index cca6b9722b2a281889ac16f4896a105135efdc60..cefd23526381f3b73e80cdd17f970c3a3ce312cb 100644 (file)
@@ -30,6 +30,7 @@
 #include "qapi/qapi-commands-misc-arm.h"
 #include "qobject/qdict.h"
 #include "qom/qom-qobject.h"
+#include "cpu.h"
 
 static GICCapability *gic_cap_new(int version)
 {