mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 09:16:55 +07:00
virtio-mem: Constify mem_id_table
mem_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-4-rikard.falkeborn@gmail.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: David Hildenbrand <david@redhat.com>
This commit is contained in:
parent
7f90611693
commit
7ab4de6002
@ -1957,7 +1957,7 @@ static unsigned int virtio_mem_features[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct virtio_device_id virtio_mem_id_table[] = {
|
||||
static const struct virtio_device_id virtio_mem_id_table[] = {
|
||||
{ VIRTIO_ID_MEM, VIRTIO_DEV_ANY_ID },
|
||||
{ 0 },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user