aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-10 15:57:38 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-02-11 15:32:17 +1030
commit9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch)
tree180ddb2f2968721c52ed9b5917378aff00c7b7f6 /include/linux/virtio.h
parentvirtio-mmio: fix wrong comment about register offset (diff)
downloadlinux-dev-9350393239153c4a98cbed4d69b9ed81e37d5e74.tar.xz
linux-dev-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 'include/linux/virtio.h')
-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 {
int index;
struct device dev;
struct virtio_device_id id;
- struct virtio_config_ops *config;
+ const struct virtio_config_ops *config;
struct list_head vqs;
/* Note that this is a Linux set_bit-style bitmap. */
unsigned long features[1];