From 2fd6163884d74e74dd1ef54ab229d15c61d0b4cb Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 1 Mar 2018 17:36:19 +0100 Subject: block: convert bdrv_check callback to coroutine_fn Suggested-by: Kevin Wolf Signed-off-by: Paolo Bonzini Message-Id: <1516279431-30424-8-git-send-email-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- include/block/block_int.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/block') diff --git a/include/block/block_int.h b/include/block/block_int.h index e391cae53b..a84cc04d55 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -307,8 +307,9 @@ struct BlockDriver { * Returns 0 for completed check, -errno for internal errors. * The check results are stored in result. */ - int (*bdrv_check)(BlockDriverState *bs, BdrvCheckResult *result, - BdrvCheckMode fix); + int coroutine_fn (*bdrv_co_check)(BlockDriverState *bs, + BdrvCheckResult *result, + BdrvCheckMode fix); int (*bdrv_amend_options)(BlockDriverState *bs, QemuOpts *opts, BlockDriverAmendStatusCB *status_cb, -- cgit v1.2.1