mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
block: Make bdrv_can_set_read_only() static
It is never called outside of block.c. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20230203152202.49054-2-kwolf@redhat.com> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
79b677d658
commit
10e5d70787
2 changed files with 2 additions and 4 deletions
4
block.c
4
block.c
|
@ -277,8 +277,8 @@ bool bdrv_is_read_only(BlockDriverState *bs)
|
||||||
return !(bs->open_flags & BDRV_O_RDWR);
|
return !(bs->open_flags & BDRV_O_RDWR);
|
||||||
}
|
}
|
||||||
|
|
||||||
int bdrv_can_set_read_only(BlockDriverState *bs, bool read_only,
|
static int bdrv_can_set_read_only(BlockDriverState *bs, bool read_only,
|
||||||
bool ignore_allow_rdw, Error **errp)
|
bool ignore_allow_rdw, Error **errp)
|
||||||
{
|
{
|
||||||
IO_CODE();
|
IO_CODE();
|
||||||
|
|
||||||
|
|
|
@ -134,8 +134,6 @@ int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
|
||||||
int coroutine_fn bdrv_co_is_zero_fast(BlockDriverState *bs, int64_t offset,
|
int coroutine_fn bdrv_co_is_zero_fast(BlockDriverState *bs, int64_t offset,
|
||||||
int64_t bytes);
|
int64_t bytes);
|
||||||
|
|
||||||
int bdrv_can_set_read_only(BlockDriverState *bs, bool read_only,
|
|
||||||
bool ignore_allow_rdw, Error **errp);
|
|
||||||
int bdrv_apply_auto_read_only(BlockDriverState *bs, const char *errmsg,
|
int bdrv_apply_auto_read_only(BlockDriverState *bs, const char *errmsg,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
bool bdrv_is_read_only(BlockDriverState *bs);
|
bool bdrv_is_read_only(BlockDriverState *bs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue