summaryrefslogtreecommitdiffstats
path: root/drivers/s390/kvm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-10 06:27:38 +0100
committerRusty Russell <rusty@rustcorp.com.au>2013-02-11 06:02:17 +0100
commit9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch)
tree180ddb2f2968721c52ed9b5917378aff00c7b7f6 /drivers/s390/kvm
parentvirtio-mmio: fix wrong comment about register offset (diff)
downloadlinux-9350393239153c4a98cbed4d69b9ed81e37d5e74.tar.xz
linux-9350393239153c4a98cbed4d69b9ed81e37d5e74.zip
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/s390/kvm')
-rw-r--r--drivers/s390/kvm/kvm_virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index 8491111aec12..7d08fba7542d 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -275,7 +275,7 @@ static const char *kvm_bus_name(struct virtio_device *vdev)
/*
* The config ops structure as defined by virtio config
*/
-static struct virtio_config_ops kvm_vq_configspace_ops = {
+static const struct virtio_config_ops kvm_vq_configspace_ops = {
.get_features = kvm_get_features,
.finalize_features = kvm_finalize_features,
.get = kvm_get,