Commit 7f906116 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Michael S. Tsirkin

virtio_input: Constify id_table

id_table is not modified, so make it const to allow the compiler to put
it in read-only memory.
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200911203509.26505-3-rikard.falkeborn@gmail.comSigned-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
parent bfec6c83
...@@ -363,7 +363,7 @@ static int virtinput_restore(struct virtio_device *vdev) ...@@ -363,7 +363,7 @@ static int virtinput_restore(struct virtio_device *vdev)
static unsigned int features[] = { static unsigned int features[] = {
/* none */ /* none */
}; };
static struct virtio_device_id id_table[] = { static const struct virtio_device_id id_table[] = {
{ VIRTIO_ID_INPUT, VIRTIO_DEV_ANY_ID }, { VIRTIO_ID_INPUT, VIRTIO_DEV_ANY_ID },
{ 0 }, { 0 },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment