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>
This commit is contained in:
parent
e238a99e89
commit
66a5bdf309
2
block.c
2
block.c
@ -4121,7 +4121,7 @@ typedef struct CheckCo {
|
|||||||
int ret;
|
int ret;
|
||||||
} CheckCo;
|
} CheckCo;
|
||||||
|
|
||||||
static void bdrv_check_co_entry(void *opaque)
|
static void coroutine_fn bdrv_check_co_entry(void *opaque)
|
||||||
{
|
{
|
||||||
CheckCo *cco = opaque;
|
CheckCo *cco = opaque;
|
||||||
cco->ret = bdrv_co_check(cco->bs, cco->res, cco->fix);
|
cco->ret = bdrv_co_check(cco->bs, cco->res, cco->fix);
|
||||||
|
Loading…
Reference in New Issue
Block a user