parallels: 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-14-pbonzini@redhat.com> [kwolf: Fixed up coding style] Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
711b12e7c3
commit
7644d2dca8
|
@ -165,8 +165,9 @@ static int64_t block_status(BDRVParallelsState *s, int64_t sector_num,
|
||||||
return start_off;
|
return start_off;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int64_t allocate_clusters(BlockDriverState *bs, int64_t sector_num,
|
static coroutine_fn int64_t allocate_clusters(BlockDriverState *bs,
|
||||||
int nb_sectors, int *pnum)
|
int64_t sector_num,
|
||||||
|
int nb_sectors, int *pnum)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
BDRVParallelsState *s = bs->opaque;
|
BDRVParallelsState *s = bs->opaque;
|
||||||
|
|
Loading…
Reference in New Issue