summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorPaolo Bonzini2022-09-22 10:49:19 +0200
committerKevin Wolf2022-10-07 12:11:41 +0200
commit06753a0750a1973983505c2b544445042f555ba6 (patch)
treee5087d3d319df3082b7b057535e3f1a83cfda8b0 /job.c
parentvmdk: add missing coroutine_fn annotations (diff)
downloadqemu-06753a0750a1973983505c2b544445042f555ba6.tar.gz
qemu-06753a0750a1973983505c2b544445042f555ba6.tar.xz
qemu-06753a0750a1973983505c2b544445042f555ba6.zip
job: add missing coroutine_fn annotations
Callers of coroutine_fn must be coroutine_fn themselves, or the call must be within "if (qemu_in_coroutine())". Apply coroutine_fn to functions where this holds. Reviewed-by: Alberto Faria <afaria@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220922084924.201610-22-pbonzini@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 075c6f3a20..20f0d8b2cd 100644
--- a/job.c
+++ b/job.c
@@ -525,7 +525,7 @@ void coroutine_fn job_pause_point(Job *job)
}
}
-void job_yield(Job *job)
+void coroutine_fn job_yield(Job *job)
{
assert(job->busy);