]> Git Repo - qemu.git/commitdiff
raw-format: add missing coroutine_fn annotations
authorPaolo Bonzini <[email protected]>
Thu, 22 Sep 2022 08:49:21 +0000 (10:49 +0200)
committerKevin Wolf <[email protected]>
Fri, 7 Oct 2022 10:11:41 +0000 (12:11 +0200)
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <20220922084924[email protected]>
[kwolf: Fixed up coding style]
Reviewed-by: Kevin Wolf <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/raw-format.c

index c7278e348ea5990af858e53284d0f6b17c1b0a55..f337ac75696cdff368422908e1078e258c0733bf 100644 (file)
@@ -411,7 +411,8 @@ static void raw_lock_medium(BlockDriverState *bs, bool locked)
     bdrv_lock_medium(bs->file->bs, locked);
 }
 
-static int raw_co_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
+static int coroutine_fn raw_co_ioctl(BlockDriverState *bs,
+                                     unsigned long int req, void *buf)
 {
     BDRVRawState *s = bs->opaque;
     if (s->offset || s->has_size) {
This page took 0.027105 seconds and 4 git commands to generate.