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:
Nikita Alekseev 2019-04-01 12:30:51 +03:00 committed by Stefan Hajnoczi
parent e238a99e89
commit 66a5bdf309

View File

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