aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-05-11 12:41:56 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-05-14 08:12:09 -0400
commit01ce7724a17521083d70114e9f24fb9d2d51e29c (patch)
tree7f0683aa96b145c304c53b019534721499dcbd27
parent4c21e3534a0b0373258d559f50a65d0e5385b7c4 (diff)
downloadqemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.zip
qemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.tar.gz
qemu-01ce7724a17521083d70114e9f24fb9d2d51e29c.tar.bz2
virtio-blk: Constify VirtIOFeature feature_sizes[]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210511104157.2880306-3-philmd@redhat.com>
-rw-r--r--hw/block/virtio-blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index d28979e..f139cd7 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,