From: Arvind Yadav Date: Wed, 23 Aug 2017 17:17:15 +0000 (+0530) Subject: vfio: platform: constify amba_id X-Git-Tag: v4.14-rc1~77^2 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=commitdiff_plain;h=417fb50d5516e8526769c16ff5b92de47adbe727;hp=-c 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 Signed-off-by: Alex Williamson --- 417fb50d5516e8526769c16ff5b92de47adbe727 diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio_amba.c index 31372fbf6c5b..62dfbfeaabfc 100644 --- a/drivers/vfio/platform/vfio_amba.c +++ b/drivers/vfio/platform/vfio_amba.c @@ -93,7 +93,7 @@ static int vfio_amba_remove(struct amba_device *adev) return -EINVAL; } -static struct amba_id pl330_ids[] = { +static const struct amba_id pl330_ids[] = { { 0, 0 }, };