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>
This commit is contained in:
Paolo Bonzini 2022-09-22 10:49:19 +02:00 committed by Kevin Wolf
parent b4df990377
commit 06753a0750
2 changed files with 2 additions and 2 deletions

View File

@ -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.

2
job.c
View File

@ -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);