diff --git a/block.c b/block.c index eb8158ac33b2f26cb42191d1fe2601ac2ab98820..a99e6d85090a0749e07080f81e81e95cfc8c42e1 100644 --- a/block.c +++ b/block.c @@ -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 3ceeb5a940c4f20f539d9a5fd9bf9f11fd16c776..6a3f64da1213519e425c0d4abde92528dee3305a 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: *