[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 1/7] block-backend: blk_root(): drop const specifier on return
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v6 1/7] block-backend: blk_root(): drop const specifier on return type |
Date: |
Wed, 22 Feb 2023 21:55:46 +0300 |
We'll need get non-const child pointer for graph modifications in
further commits.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
include/sysemu/block-backend-global-state.h | 2 +-
block/block-backend.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/sysemu/block-backend-global-state.h
b/include/sysemu/block-backend-global-state.h
index 2b6d27db7c..5db83ed8cb 100644
--- a/include/sysemu/block-backend-global-state.h
+++ b/include/sysemu/block-backend-global-state.h
@@ -122,7 +122,7 @@ void blk_set_force_allow_inactivate(BlockBackend *blk);
bool blk_register_buf(BlockBackend *blk, void *host, size_t size, Error
**errp);
void blk_unregister_buf(BlockBackend *blk, void *host, size_t size);
-const BdrvChild *blk_root(BlockBackend *blk);
+BdrvChild *blk_root(BlockBackend *blk);
int blk_make_empty(BlockBackend *blk, Error **errp);
diff --git a/block/block-backend.c b/block/block-backend.c
index ef512f7c48..50a0a2af70 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -2641,7 +2641,7 @@ int coroutine_fn blk_co_copy_range(BlockBackend *blk_in,
int64_t off_in,
bytes, read_flags, write_flags);
}
-const BdrvChild *blk_root(BlockBackend *blk)
+BdrvChild *blk_root(BlockBackend *blk)
{
GLOBAL_STATE_CODE();
return blk->root;
--
2.34.1
- [PATCH v6 0/7] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 1/7] block-backend: blk_root(): drop const specifier on return type,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v6 2/7] block/export: add blk_by_export_id(), Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 3/7] block: make bdrv_find_child() function public, Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 5/7] block: bdrv_get_xdbg_block_graph(): report export ids, Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 4/7] qapi: add x-blockdev-replace command, Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 7/7] iotests: add filter-insertion, Vladimir Sementsov-Ogievskiy, 2023/02/22
- [PATCH v6 6/7] iotests.py: introduce VM.assert_edges_list() method, Vladimir Sementsov-Ogievskiy, 2023/02/22