@samitouri / QOSamiQemu / commits / 79a71f3a49

monitor: Include missing 'qemu/aio-wait.h' header

Both monitor.c and qmp.c use types / methods declared in "qemu/aio-wait.h". Include the latter to avoid the following errors when refactoring unrelated headers: ../monitor/monitor.c:648:5: error: call to undeclared function 'AIO_WAIT_WHILE_UNLOCKED' 648 | AIO_WAIT_WHILE_UNLOCKED(NULL, | ^ ../monitor/qmp.c:792:9: error: call to undeclared function 'aio_wait_bh_oneshot' 792 | aio_wait_bh_oneshot(iothread_get_aio_context(mon_iothread), | ^ Fixes: 9ce44e2ce26 ("qmp: Move dispatcher to a coroutine") Fixes: a5df506e129 ("monitor: implement support for deleting QMP objects") Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20260812211708.92824-8-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 12, 2026 at 11:13 UTC 79a71f3a49f106282447598b9ebb0e78cfc47425
2 files changed +2 -1
monitor/monitor.c
+1
@@ -30,6 +30,7 @@
30 #include "qapi/qapi-visit-control.h"
31 #include "qobject/qdict.h"
32 #include "qom/object_interfaces.h"
33 +#include "qemu/aio-wait.h"
34 #include "qemu/error-report.h"
35 #include "qemu/option.h"
36 #include "system/qtest.h"
monitor/qmp.c
+1 -1
@@ -23,7 +23,7 @@
23 */
24
25 #include "qemu/osdep.h"
26 -
26 +#include "qemu/aio-wait.h"
27 #include "chardev/char-io.h"
28 #include "monitor-internal.h"
29 #include "qapi/error.h"