summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf2017-07-11 13:26:59 +0200
committerKevin Wolf2017-07-18 15:14:35 +0200
commit77beef8365ef797c95e49d87f07ed5d60d583594 (patch)
tree82b27af9a66e7ffe6fc27c5c8b7a02fabd5a8ded /block
parentblock/vpc.c: Handle write failures in get_image_offset() (diff)
downloadqemu-77beef8365ef797c95e49d87f07ed5d60d583594.tar.gz
qemu-77beef8365ef797c95e49d87f07ed5d60d583594.tar.xz
qemu-77beef8365ef797c95e49d87f07ed5d60d583594.zip
block: Make blk_get_attached_dev_id() public
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index fe3542b3f8..8171270b59 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -83,7 +83,6 @@ static const AIOCBInfo block_backend_aiocb_info = {
static void drive_info_del(DriveInfo *dinfo);
static BlockBackend *bdrv_first_blk(BlockDriverState *bs);
-static char *blk_get_attached_dev_id(BlockBackend *blk);
/* All BlockBackends */
static QTAILQ_HEAD(, BlockBackend) block_backends =
@@ -726,7 +725,7 @@ void *blk_get_attached_dev(BlockBackend *blk)
/* Return the qdev ID, or if no ID is assigned the QOM path, of the block
* device attached to the BlockBackend. */
-static char *blk_get_attached_dev_id(BlockBackend *blk)
+char *blk_get_attached_dev_id(BlockBackend *blk)
{
DeviceState *dev;