summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf2017-07-11 14:06:04 +0200
committerKevin Wolf2017-07-18 15:14:36 +0200
commita429b9b5f44fb126b3a6ff971027470254401487 (patch)
tree2936d9541471f6655ecb8aafa5d9396768dcaacf /block
parentblock/qapi: Add qdev device name to query-block (diff)
downloadqemu-a429b9b5f44fb126b3a6ff971027470254401487.tar.gz
qemu-a429b9b5f44fb126b3a6ff971027470254401487.tar.xz
qemu-a429b9b5f44fb126b3a6ff971027470254401487.zip
block: Make blk_all_next() 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index 8171270b59..968438c149 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -342,7 +342,7 @@ void blk_unref(BlockBackend *blk)
* Behaves similarly to blk_next() but iterates over all BlockBackends, even the
* ones which are hidden (i.e. are not referenced by the monitor).
*/
-static BlockBackend *blk_all_next(BlockBackend *blk)
+BlockBackend *blk_all_next(BlockBackend *blk)
{
return blk ? QTAILQ_NEXT(blk, link)
: QTAILQ_FIRST(&block_backends);