path: root/block.c
diff options
authorMax Reitz <mreitz@redhat.com>2016-01-29 16:36:10 +0100
committerMax Reitz <mreitz@redhat.com>2016-02-02 17:50:46 +0100
commit64dff52019367194699a772e3cc31941fd9752a8 (patch)
tree52af45aa0b9ab9921880bff5dbf3150123b980ac /block.c
parent938abd4325951f94e87765b7daea61bf0bf71a5e (diff)
block: Make bdrv_close() static
There are no users of bdrv_close() left, except for one of bdrv_open()'s failure paths, bdrv_close_all() and bdrv_delete(), and that is good. Make bdrv_close() static so nobody makes the mistake of directly using bdrv_close() again. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
1 files changed, 3 insertions, 1 deletions
diff --git a/block.c b/block.c
index f4312d94f7..e076f1004a 100644
--- a/block.c
+++ b/block.c
@@ -93,6 +93,8 @@ static void bdrv_release_named_dirty_bitmaps(BlockDriverState *bs);
/* If non-zero, use only whitelisted block drivers */
static int use_bdrv_whitelist;
+static void bdrv_close(BlockDriverState *bs);
#ifdef _WIN32
static int is_windows_drive_prefix(const char *filename)
@@ -2134,7 +2136,7 @@ void bdrv_reopen_abort(BDRVReopenState *reopen_state)
-void bdrv_close(BlockDriverState *bs)
+static void bdrv_close(BlockDriverState *bs)
BdrvAioNotifier *ban, *ban_next;