diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2013-02-10 09:27:38 +0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-11 09:02:17 +0400 |
commit | 9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch) | |
tree | 180ddb2f2968721c52ed9b5917378aff00c7b7f6 /drivers/virtio/virtio_pci.c | |
parent | 0d34cc2d6d904e2d0160e42734bccc1cb391cec0 (diff) | |
download | linux-9350393239153c4a98cbed4d69b9ed81e37d5e74.tar.xz |
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>
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 0c142892c105..52c5ce6aec8d 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -652,7 +652,7 @@ static int vp_set_vq_affinity(struct virtqueue *vq, int cpu) return 0; } -static struct virtio_config_ops virtio_pci_config_ops = { +static const struct virtio_config_ops virtio_pci_config_ops = { .get = vp_get, .set = vp_set, .get_status = vp_get_status, |