From: Philippe Mathieu-Daudé Date: Tue, 11 May 2021 10:41:56 +0000 (+0200) Subject: virtio-blk: Constify VirtIOFeature feature_sizes[] X-Git-Tag: v6.1.0-rc0~122^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01ce7724a17521083d70114e9f24fb9d2d51e29c;p=thirdparty%2Fqemu.git virtio-blk: Constify VirtIOFeature feature_sizes[] Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210511104157.2880306-3-philmd@redhat.com> --- diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8d..f139cd7cc9c 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,