diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-22 10:49:19 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-10-07 12:11:41 +0200 |
commit | 06753a0750a1973983505c2b544445042f555ba6 (patch) | |
tree | e5087d3d319df3082b7b057535e3f1a83cfda8b0 | |
parent | b4df990377bdaa6d6ad4a507e12750988eba5913 (diff) | |
download | qemu-06753a0750a1973983505c2b544445042f555ba6.zip qemu-06753a0750a1973983505c2b544445042f555ba6.tar.gz qemu-06753a0750a1973983505c2b544445042f555ba6.tar.bz2 |
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>
-rw-r--r-- | include/qemu/job.h | 2 | ||||
-rw-r--r-- | job.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/job.h b/include/qemu/job.h index c105b31..397ac39 100644 --- a/include/qemu/job.h +++ b/include/qemu/job.h @@ -436,7 +436,7 @@ void coroutine_fn job_pause_point(Job *job); * * Yield the job coroutine. */ -void job_yield(Job *job); +void coroutine_fn job_yield(Job *job); /** * @job: The job that calls the function. @@ -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); |