diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-05-11 12:41:57 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-05-13 17:45:54 +0200 |
commit | 28cbc87be58b490a31f5c2697c79cf0534cd3fea (patch) | |
tree | be1bac2148107aaaa032a3ed0f9ca2f0f18ff426 | |
parent | f212f3e7f868cb0e82fdf2d68e83adcad4e33730 (diff) | |
download | qemu-28cbc87be58b490a31f5c2697c79cf0534cd3fea.zip qemu-28cbc87be58b490a31f5c2697c79cf0534cd3fea.tar.gz qemu-28cbc87be58b490a31f5c2697c79cf0534cd3fea.tar.bz2 |
virtio-net: Constify VirtIOFeature feature_sizes[]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210511104157.2880306-4-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r-- | hw/net/virtio-net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 66b9ff4..6b7e8dd 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -89,7 +89,7 @@ VIRTIO_NET_RSS_HASH_TYPE_TCP_EX | \ VIRTIO_NET_RSS_HASH_TYPE_UDP_EX) -static VirtIOFeature feature_sizes[] = { +static const VirtIOFeature feature_sizes[] = { {.flags = 1ULL << VIRTIO_NET_F_MAC, .end = endof(struct virtio_net_config, mac)}, {.flags = 1ULL << VIRTIO_NET_F_STATUS, |