coroutine: Drop coroutine_fn annotation from qemu_coroutine_self()
PATCH 1/1 coroutine: Drop coroutine_fn annotation from qemu_coroutine_self()
qemu_coroutine_self() can be called from outside coroutine context, returning the leader coroutine, and several such invocations currently exist (mostly in qcow2 tracing calls).
--- include/qemu/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/qemu/coroutine.h +1 -1
@@ -122,7 +122,7 @@ AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co);/** * Get the currently executing coroutine */ -Coroutine *coroutine_fn qemu_coroutine_self(void); +Coroutine *qemu_coroutine_self (void );/** * Return whether or not currently inside a coroutine
Signature · 1 line
2.37.3
Quoted 14 lines · Alberto Faria
qemu_coroutine_self()can be called from outside coroutine context, returning the leader coroutine, and several such invocations currently exist (mostly in qcow2 tracing calls).Signed-off-by Alberto Faria <[email protected]>--- include/qemu/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/qemu/coroutine.h +0
-0
include/qemu/coroutine.h AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co); · line 128
Quoted 8 lines
include/qemu/coroutine.h +1
-1@@ -122,7 +122,7 @@ AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co);/** * Get the currently executing coroutine */ -Coroutine *coroutine_fn qemu_coroutine_self(void); +Coroutine *qemu_coroutine_self (void );/** * Return whether or not currently inside a coroutine
The alternative would be to have two versions, one that is coroutine_fn and one that isn't, but this is certainly okay too!
Paolo
Kevin Wolf
AppliedAm 05.10.2022 um 19:52 hat Alberto Faria geschrieben:
Quoted 5 lines
qemu_coroutine_self()can be called from outside coroutine context, returning the leader coroutine, and several such invocations currently exist (mostly in qcow2 tracing calls).Signed-off-by Alberto Faria <[email protected]>
Thanks, applied to the block branch.
Kevin