@samitouri / QOSamiQemu / commits / cca454be70

migration/hmp-cmds: Include 'block/block-global-state.h' header

migration-hmp-cmds.c uses types / methods declared in "block/block-global-state.h". Include the latter otherwise we get when refactoring unrelated headers: ../migration/migration-hmp-cmds.c:911:5: error: use of undeclared identifier 'BdrvNextIterator' 911 | BdrvNextIterator it; | ^ ../migration/migration-hmp-cmds.c:918:15: error: call to undeclared function 'bdrv_first' 918 | for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org> Message-Id: <20260812211708.92824-7-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 12, 2026 at 11:09 UTC cca454be70f02ee1f77474d444e38620bf60c446
1 file changed +1
migration/migration-hmp-cmds.c
+1
@@ -15,6 +15,7 @@
15
16 #include "qemu/osdep.h"
17 #include "block/qapi.h"
18 +#include "block/block-global-state.h"
19 #include "migration/snapshot.h"
20 #include "monitor/hmp.h"
21 #include "monitor/hmp-completion.h"