diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-05-11 12:41:55 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-05-14 08:12:09 -0400 |
commit | 4c21e3534a0b0373258d559f50a65d0e5385b7c4 (patch) | |
tree | bb01128b2c17670708cdc5fc68982704a5b454c6 /hw | |
parent | bb9feea43179ef8aba2c0a9cc1e670cb049ba90e (diff) |
hw/virtio: Pass virtio_feature_get_config_size() a const argument
The VirtIOFeature structure isn't modified, mark it const.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210511104157.2880306-2-philmd@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio/virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 07f4e60b30..564ca63246 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -2982,7 +2982,7 @@ int virtio_set_features(VirtIODevice *vdev, uint64_t val) return ret; } -size_t virtio_feature_get_config_size(VirtIOFeature *feature_sizes, +size_t virtio_feature_get_config_size(const VirtIOFeature *feature_sizes, uint64_t host_features) { size_t config_size = 0; |