aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorNikita Alekseev <n.alekseev2104@gmail.com>2019-04-01 12:30:51 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2019-05-10 10:53:21 +0100
commit66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d (patch)
tree5f3cedff499663b01630989c1e6fbe7c7ae5ff19 /block.c
parente238a99e89e6304a21ea4bf8f4ec3c296624199b (diff)
downloadqemu-66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d.zip
qemu-66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d.tar.gz
qemu-66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d.tar.bz2
block: Add coroutine_fn to bdrv_check_co_entry
bdrv_check_co_entry calls bdrv_co_check, which is a coroutine function. Thus, it also needs to be marked as a coroutine. Signed-off-by: Nikita Alekseev <n.alekseev2104@gmail.com> Message-id: 20190401093051.16488-1-n.alekseev2104@gmail.com Message-Id: <20190401093051.16488-1-n.alekseev2104@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 7dc8fe2..5c2c6aa 100644
--- a/block.c
+++ b/block.c
@@ -4121,7 +4121,7 @@ typedef struct CheckCo {
int ret;
} CheckCo;
-static void bdrv_check_co_entry(void *opaque)
+static void coroutine_fn bdrv_check_co_entry(void *opaque)
{
CheckCo *cco = opaque;
cco->ret = bdrv_co_check(cco->bs, cco->res, cco->fix);