From: Charlie Shepherd <cs...@cam.ac.uk> While it only really makes sense to call qemu_coroutine_self() in a coroutine context, it cannot actually yield execution itself, so remove the coroutine_fn annotation. --- include/block/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/block/coroutine.h b/include/block/coroutine.h index 3b94b6d..563dcde 100644 --- a/include/block/coroutine.h +++ b/include/block/coroutine.h @@ -87,7 +87,7 @@ void coroutine_fn qemu_coroutine_yield(void); /** * 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 -- 1.8.3.2