diff options
author | Philippe Mathieu-Daudé | 2021-05-11 12:41:56 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2021-05-14 14:12:09 +0200 |
commit | 01ce7724a17521083d70114e9f24fb9d2d51e29c (patch) | |
tree | 7f0683aa96b145c304c53b019534721499dcbd27 /hw/block/virtio-blk.c | |
parent | hw/virtio: Pass virtio_feature_get_config_size() a const argument (diff) | |
download | qemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.tar.gz qemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.tar.xz qemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.zip |
virtio-blk: Constify VirtIOFeature feature_sizes[]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210511104157.2880306-3-philmd@redhat.com>
Diffstat (limited to 'hw/block/virtio-blk.c')
-rw-r--r-- | hw/block/virtio-blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8..f139cd7cc9 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -40,7 +40,7 @@ * Starting from the discard feature, we can use this array to properly * set the config size depending on the features enabled. */ -static VirtIOFeature feature_sizes[] = { +static const VirtIOFeature feature_sizes[] = { {.flags = 1ULL << VIRTIO_BLK_F_DISCARD, .end = endof(struct virtio_blk_config, discard_sector_alignment)}, {.flags = 1ULL << VIRTIO_BLK_F_WRITE_ZEROES, |