summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorAlberto Faria2022-10-05 19:52:09 +0200
committerKevin Wolf2022-10-07 12:11:40 +0200
commitef770f8101f6a3f4fb38a4fa693dfe68a0ac6bf2 (patch)
tree98640138a7f88c23ca0505175b7b049579f490f2 /include/qemu
parentRevert "qapi: fix examples of blockdev-add with qcow2" (diff)
downloadqemu-ef770f8101f6a3f4fb38a4fa693dfe68a0ac6bf2.tar.gz
qemu-ef770f8101f6a3f4fb38a4fa693dfe68a0ac6bf2.tar.xz
qemu-ef770f8101f6a3f4fb38a4fa693dfe68a0ac6bf2.zip
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). Signed-off-by: Alberto Faria <afaria@redhat.com> Message-Id: <20221005175209.975797-1-afaria@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/coroutine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h
index 08c5bb3c76..414b677302 100644
--- a/include/qemu/coroutine.h
+++ b/include/qemu/coroutine.h
@@ -97,7 +97,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