Re: [PATCH v3 06/23] migration/hmp-cmds: Include 'block/block-global-state.h' header
"Dr. David Alan Gilbert" <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <an0BCHXDCq9H-7Ab@gallifrey> |
* Philippe Mathieu-Daudé ([email protected]) wrote: > 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é <[email protected]> > Reviewed-by: Marc-André Lureau <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]> > --- > migration/migration-hmp-cmds.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c > index b04fc4489f4..351512942af 100644 > --- a/migration/migration-hmp-cmds.c > +++ b/migration/migration-hmp-cmds.c > @@ -15,6 +15,7 @@ > > #include "qemu/osdep.h" > #include "block/qapi.h" > +#include "block/block-global-state.h" > #include "migration/snapshot.h" > #include "monitor/hmp.h" > #include "monitor/hmp-completion.h" > -- > 2.53.0 > -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/