virtio: make config_ops const
It is just a table of function pointers, make it const for cleanliness and security reasons. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:

committed by
Rusty Russell

parent
0d34cc2d6d
commit
9350393239
@@ -423,7 +423,7 @@ static const char *vm_bus_name(struct virtio_device *vdev)
|
||||
return vm_dev->pdev->name;
|
||||
}
|
||||
|
||||
static struct virtio_config_ops virtio_mmio_config_ops = {
|
||||
static const struct virtio_config_ops virtio_mmio_config_ops = {
|
||||
.get = vm_get,
|
||||
.set = vm_set,
|
||||
.get_status = vm_get_status,
|
||||
|
Reference in New Issue
Block a user