summaryrefslogtreecommitdiff
path: root/lib/utils/ipi/fdt_ipi_mswi.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-05-29 21:32:11 +0300
committerAnup Patel <anup@brainfault.org>2022-05-30 08:02:35 +0300
commitfab0379bb60d6e177018b53f07718b69ba34948d (patch)
tree780d1bdbb8ea444a227e7a3b9c1972014b92404b /lib/utils/ipi/fdt_ipi_mswi.c
parentf067bb84cf2dd6493ff3fa49294d3ec80481ad75 (diff)
downloadopensbi-fab0379bb60d6e177018b53f07718b69ba34948d.tar.xz
lib: utils/fdt: Require match data to be const
Match data stores hardware attributes which do not change at runtime, so it does not need to be mutable. Make it const. Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'lib/utils/ipi/fdt_ipi_mswi.c')
-rw-r--r--lib/utils/ipi/fdt_ipi_mswi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c
index 1f0fda7..0176941 100644
--- a/lib/utils/ipi/fdt_ipi_mswi.c
+++ b/lib/utils/ipi/fdt_ipi_mswi.c
@@ -51,7 +51,7 @@ static int ipi_mswi_cold_init(void *fdt, int nodeoff,
return 0;
}
-static unsigned long clint_offset = CLINT_MSWI_OFFSET;
+static const unsigned long clint_offset = CLINT_MSWI_OFFSET;
static const struct fdt_match ipi_mswi_match[] = {
{ .compatible = "riscv,clint0", .data = &clint_offset },