Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfio: platform: constify amba_id

amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Arvind Yadav and committed by
Alex Williamson
417fb50d 6586b561

+1 -1
+1 -1
drivers/vfio/platform/vfio_amba.c
··· 93 93 return -EINVAL; 94 94 } 95 95 96 - static struct amba_id pl330_ids[] = { 96 + static const struct amba_id pl330_ids[] = { 97 97 { 0, 0 }, 98 98 }; 99 99