summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-04-09 15:22:13 +0100
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:21:57 +0200
commitb66460e4e938910b0e5495e6d3d7b2d5b3cf9c99 (patch)
tree6a48d5a93b0a06419c41b7f3a8c0e5ea05adb234 /block.c
parent763b6084baaf7d4e8b93f8b74f23a37b2fdb4eb4 (diff)
block: Do not export bdrv_first
The bdrv_first linked list of BlockDriverStates is currently extern so that block migration can iterate the list. However, since there is already a bdrv_iterate() function there is no need to expose bdrv_first. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index ed4c819f0..61da18365 100644
--- a/block.c
+++ b/block.c
@@ -55,7 +55,7 @@ static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors);
-BlockDriverState *bdrv_first;
+static BlockDriverState *bdrv_first;
static BlockDriver *first_drv;