diff options
-rw-r--r-- | block.c | 3 | ||||
-rw-r--r-- | include/block/block_int.h | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -73,8 +73,7 @@ struct BdrvDirtyBitmap { #define NOT_DONE 0x7fffffff /* used while emulated sync operation in progress */ -static QTAILQ_HEAD(, BlockDriverState) bdrv_states = - QTAILQ_HEAD_INITIALIZER(bdrv_states); +struct BdrvStates bdrv_states = QTAILQ_HEAD_INITIALIZER(bdrv_states); static QTAILQ_HEAD(, BlockDriverState) graph_bdrv_states = QTAILQ_HEAD_INITIALIZER(graph_bdrv_states); diff --git a/include/block/block_int.h b/include/block/block_int.h index 3ceeb5a940..6a3f64da12 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -473,6 +473,8 @@ extern BlockDriver bdrv_file; extern BlockDriver bdrv_raw; extern BlockDriver bdrv_qcow2; +extern QTAILQ_HEAD(BdrvStates, BlockDriverState) bdrv_states; + /** * bdrv_setup_io_funcs: * |