]> git.proxmox.com Git - mirror_qemu.git/commitdiff
coroutine: remove incorrect coroutine_fn annotations
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Sep 2022 08:49:03 +0000 (10:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 7 Oct 2022 10:11:40 +0000 (12:11 +0200)
qemu_coroutine_get_aio_context inspects a coroutine, but it does
not have to be called from the coroutine itself (or from any
coroutine).

Reviewed-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220922084924.201610-6-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/coroutine.h
util/qemu-coroutine.c

index 414b677302accfe7622e7f5f9ff6ffcaa46d9e11..aae33cce172e274503329bcd57a9603d6769ea0f 100644 (file)
@@ -92,7 +92,7 @@ void coroutine_fn qemu_coroutine_yield(void);
 /**
  * Get the AioContext of the given coroutine
  */
-AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co);
+AioContext *qemu_coroutine_get_aio_context(Coroutine *co);
 
 /**
  * Get the currently executing coroutine
index 4a8bd63ef0a8f79ee929afd31efe77925d784b0f..356b746f0b2fbed001bd6aa137b11266eaca3a61 100644 (file)
@@ -213,7 +213,7 @@ bool qemu_coroutine_entered(Coroutine *co)
     return co->caller;
 }
 
-AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co)
+AioContext *qemu_coroutine_get_aio_context(Coroutine *co)
 {
     return co->ctx;
 }