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~169^2~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f212f3e7f868cb0e82fdf2d68e83adcad4e33730;p=qemu-nvme.git virtio-blk: Constify VirtIOFeature feature_sizes[] Signed-off-by: Philippe Mathieu-Daudé Acked-by: Jason Wang Reviewed-by: Richard Henderson Reviewed-by: Stefan Hajnoczi Reviewed-by: Stefano Garzarella Message-Id: <20210511104157.2880306-3-philmd@redhat.com> Signed-off-by: Laurent Vivier --- 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,