summaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorRusty Russell2009-11-28 07:50:26 +0100
committerRusty Russell2010-02-24 04:52:32 +0100
commit1dff399616a79b8ef5d61ad68f2ef1e1f590b465 (patch)
treeaa463b02bfdabc008a9e62717d25e259585e0f3d /drivers/char/virtio_console.c
parentvirtio: console: statically initialize virtio_cons (diff)
downloadkernel-qcow2-linux-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.tar.gz
kernel-qcow2-linux-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.tar.xz
kernel-qcow2-linux-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.zip
hvc_console: make the ops pointer const.
This is nicer for modern R/O protection. And noone needs it non-const, so constify the callers as well. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Amit Shah <amit.shah@redhat.com> To: Christian Borntraeger <borntraeger@de.ibm.com> Cc: linuxppc-dev@ozlabs.org
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 1d844a43a6bf..791be4e91d15 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -163,7 +163,7 @@ static void hvc_handle_input(struct virtqueue *vq)
}
/* The operations for the console. */
-static struct hv_ops hv_ops = {
+static const struct hv_ops hv_ops = {
.get_chars = get_chars,
.put_chars = put_chars,
.notifier_add = notifier_add_vio,