[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[]
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[] |
Date: |
Tue, 11 May 2021 12:41:56 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
hw/block/virtio-blk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.26.3
- [PATCH 0/3] hw/virtio: Constify VirtIOFeature, Philippe Mathieu-Daudé, 2021/05/11
- [PATCH 1/3] hw/virtio: Pass virtio_feature_get_config_size() a const argument, Philippe Mathieu-Daudé, 2021/05/11
- [PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[],
Philippe Mathieu-Daudé <=
- [PATCH 3/3] virtio-net: Constify VirtIOFeature feature_sizes[], Philippe Mathieu-Daudé, 2021/05/11
- Re: [PATCH 0/3] hw/virtio: Constify VirtIOFeature, Richard Henderson, 2021/05/11
- Re: [PATCH 0/3] hw/virtio: Constify VirtIOFeature, Stefano Garzarella, 2021/05/12
- Re: [PATCH 0/3] hw/virtio: Constify VirtIOFeature, Stefan Hajnoczi, 2021/05/12
- Re: [PATCH 0/3] hw/virtio: Constify VirtIOFeature, Laurent Vivier, 2021/05/13