[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/8] block-backend: blk_root(): drop const specifier on return ty
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 1/8] block-backend: blk_root(): drop const specifier on return type |
Date: |
Mon, 2 Aug 2021 21:54:09 +0300 |
We'll need get non-const child pointer for graph modifications in
further commits.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
include/sysemu/block-backend.h | 2 +-
block/block-backend.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 9ac5f7bbd3..be03301123 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -270,7 +270,7 @@ int coroutine_fn blk_co_copy_range(BlockBackend *blk_in,
int64_t off_in,
int bytes, BdrvRequestFlags read_flags,
BdrvRequestFlags write_flags);
-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 deb55c272e..7a0a1e1ae2 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -2455,7 +2455,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)
{
return blk->root;
}
--
2.29.2
- [PATCH RFC 0/8] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 2/8] block: add BlockParentClass class, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 1/8] block-backend: blk_root(): drop const specifier on return type,
Vladimir Sementsov-Ogievskiy <=
- [PATCH 3/8] block: realize BlockParentClass for BlockDriverState, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 5/8] qdev: improve find_device_state() to distinguish simple not found case, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 4/8] block/export: realize BlockParentClass functionality, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 6/8] qdev: realize BlockParentClass, Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 7/8] block: improve bdrv_replace_node_noperm(), Vladimir Sementsov-Ogievskiy, 2021/08/02
- [PATCH 8/8] qapi: add blockdev-replace command, Vladimir Sementsov-Ogievskiy, 2021/08/02