io: add missing coroutine annotation
Fixes: 1edf0df28409 ("io: Add qio_channel_wait_cond() helper") Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau committed
Jul 20, 2026 at 11:06 UTC
1fe1ec6773167f3f167fe8ec2c976b7bd3910d04
2 files changed
+5
-4
include/io/channel.h
+2
-2
@@ -1016,8 +1016,8 @@ void qio_channel_wait(QIOChannel *ioc,
1016
* This will work with/without a coroutine context, by automatically select
1017
* the proper API to wait.
1018
*/
1019
-void qio_channel_wait_cond(QIOChannel *ioc,
1020
- GIOCondition condition);
1019
+void coroutine_mixed_fn qio_channel_wait_cond(QIOChannel *ioc,
1020
+ GIOCondition condition);
1021
1022
/**
1023
* qio_channel_set_aio_fd_handler:
io/channel.c
+3
-2
@@ -905,8 +905,9 @@ void qio_channel_wait(QIOChannel *ioc,
905
g_main_context_unref(ctxt);
906
}
907
908
-void qio_channel_wait_cond(QIOChannel *ioc,
909
- GIOCondition condition)
908
+void coroutine_mixed_fn
909
+qio_channel_wait_cond(QIOChannel *ioc,
910
+ GIOCondition condition)
911
{
912
if (qemu_in_coroutine()) {
913
qio_channel_yield(ioc, condition);