From: Philippe Mathieu-Daudé Date: Thu, 29 May 2025 16:45:12 +0000 (+0100) Subject: target/arm/qmp: Include missing 'cpu.h' header X-Git-Tag: v10.1.0-rc0~67^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f224ec077d90c10288a4f73d01a264b0364e46;p=thirdparty%2Fqemu.git target/arm/qmp: Include missing 'cpu.h' header 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é Reviewed-by: Pierrick Bouvier Message-id: 20250513173928.77376-8-philmd@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c index cca6b9722b2..cefd2352638 100644 --- a/target/arm/arm-qmp-cmds.c +++ b/target/arm/arm-qmp-cmds.c @@ -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) {