mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
coroutine: remove incorrect coroutine_fn annotations
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>
This commit is contained in:
parent
9fb26291ac
commit
a248b856a8
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ void coroutine_fn qemu_coroutine_yield(void);
|
||||||
/**
|
/**
|
||||||
* Get the AioContext of the given coroutine
|
* 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
|
* Get the currently executing coroutine
|
||||||
|
|
|
@ -213,7 +213,7 @@ bool qemu_coroutine_entered(Coroutine *co)
|
||||||
return co->caller;
|
return co->caller;
|
||||||
}
|
}
|
||||||
|
|
||||||
AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co)
|
AioContext *qemu_coroutine_get_aio_context(Coroutine *co)
|
||||||
{
|
{
|
||||||
return co->ctx;
|
return co->ctx;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue