aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-10 00:27:38 -0500
committerRusty Russell <rusty@rustcorp.com.au>2013-02-11 00:02:17 -0500
commit9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch)
tree180ddb2f2968721c52ed9b5917378aff00c7b7f6 /include/linux
parent0d34cc2d6d904e2d0160e42734bccc1cb391cec0 (diff)
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 'include/linux')
-rw-r--r--include/linux/virtio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index cf8adb1f5b2c..eb34cf774473 100644
--- a/include/linux/virtio.h
+++ b/include/linux/virtio.h
@@ -78,7 +78,7 @@ struct virtio_device {
78 int index; 78 int index;
79 struct device dev; 79 struct device dev;
80 struct virtio_device_id id; 80 struct virtio_device_id id;
81 struct virtio_config_ops *config; 81 const struct virtio_config_ops *config;
82 struct list_head vqs; 82 struct list_head vqs;
83 /* Note that this is a Linux set_bit-style bitmap. */ 83 /* Note that this is a Linux set_bit-style bitmap. */
84 unsigned long features[1]; 84 unsigned long features[1];