diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-11 23:35:07 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-10-21 17:34:08 +0300 |
commit | bfec6c83077cd784fb049abbe2c5ff32629a7498 (patch) | |
tree | 0c4bd42aa9ee3e3144b98d2c017569b3c79404b3 /drivers/virtio/virtio_balloon.c | |
parent | 36b02df2d204da9f7a571f16ed9e91a4d083f207 (diff) | |
download | linux-bfec6c83077cd784fb049abbe2c5ff32629a7498.tar.xz |
virtio-balloon: 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: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200911203509.26505-2-rikard.falkeborn@gmail.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r-- | drivers/virtio/virtio_balloon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 31cc97f2f515..481611c09dae 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -128,7 +128,7 @@ struct virtio_balloon { struct page_reporting_dev_info pr_dev_info; }; -static struct virtio_device_id id_table[] = { +static const struct virtio_device_id id_table[] = { { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID }, { 0 }, }; |