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>
This commit is contained in:
parent
bb9feea431
commit
4c21e3534a
@ -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;
|
||||
|
@ -43,7 +43,7 @@ typedef struct VirtIOFeature {
|
||||
size_t end;
|
||||
} VirtIOFeature;
|
||||
|
||||
size_t virtio_feature_get_config_size(VirtIOFeature *features,
|
||||
size_t virtio_feature_get_config_size(const VirtIOFeature *features,
|
||||
uint64_t host_features);
|
||||
|
||||
typedef struct VirtQueue VirtQueue;
|
||||
|
Loading…
Reference in New Issue
Block a user