summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-10-06 15:17:12 +0200
committerEric Blake <eblake@redhat.com>2021-10-15 15:51:33 -0500
commit7d55a3bbadc0b00ff6c2a4f37116db887caec7ab (patch)
tree63166ed3b5f9c2e4a3026c5e2b8f9981af604e78 /block
parent70e8775ed9e46cb4fab8013627df4dd835a1c24c (diff)
downloadqemu-7d55a3bbadc0b00ff6c2a4f37116db887caec7ab.zip
block-coroutine-wrapper.py: support BlockBackend first argument
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20211006131718.214235-7-vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/coroutines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/coroutines.h b/block/coroutines.h
index 514d169d23..35a6c49857 100644
--- a/block/coroutines.h
+++ b/block/coroutines.h
@@ -27,6 +27,9 @@
#include "block/block_int.h"
+/* For blk_bs() in generated block/block-gen.c */
+#include "sysemu/block-backend.h"
+
int coroutine_fn bdrv_co_check(BlockDriverState *bs,
BdrvCheckResult *res, BdrvCheckMode fix);
int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp);