diff --git a/include/monitor/hmp-target.h b/include/monitor/hmp-target.h index 5167d17d41d..898473b3ed0 100644 --- a/include/monitor/hmp-target.h +++ b/include/monitor/hmp-target.h @@ -28,7 +28,7 @@ typedef struct MonitorDef MonitorDef; #ifdef COMPILING_PER_TARGET -#include "cpu.h" +#include "exec/target_long.h" struct MonitorDef { const char *name; int offset;
The "exec/target_long.h" header is indirectly included, pulled via "cpu.h" -> "exec/cpu-defs.h". Include it explicitly otherwise we'd get when removing the latter: monitor/hmp-target.h:35:5: error: type name requires a specifier or qualifier 35 | target_long (*get_value)(Monitor *mon, const struct MonitorDef *md, | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260427080738.77138-2-philmd@linaro.org> --- include/monitor/hmp-target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)