Skip to content

Commit

Permalink
block: Make blk_get_attached_dev_id() public
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
  • Loading branch information
kevmw committed Jul 18, 2017
1 parent cfc87e0 commit 77beef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions block/block-backend.c
Expand Up @@ -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 =
Expand Down Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions include/sysemu/block-backend.h
Expand Up @@ -126,6 +126,7 @@ int blk_attach_dev(BlockBackend *blk, DeviceState *dev);
void blk_attach_dev_legacy(BlockBackend *blk, void *dev);
void blk_detach_dev(BlockBackend *blk, void *dev);
void *blk_get_attached_dev(BlockBackend *blk);
char *blk_get_attached_dev_id(BlockBackend *blk);
BlockBackend *blk_by_dev(void *dev);
BlockBackend *blk_by_qdev_id(const char *id, Error **errp);
void blk_set_dev_ops(BlockBackend *blk, const BlockDevOps *ops, void *opaque);
Expand Down

0 comments on commit 77beef8

Please sign in to comment.