From: Dave Martin Date: Thu, 30 Jul 2015 15:36:25 +0000 (+0100) Subject: arm64: Constify hwcap name string arrays X-Git-Tag: v4.4-rc1~26^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9299b24712400d1cfe3dcf3e5dcb6cac2940df56;p=platform%2Fkernel%2Flinux-exynos.git arm64: Constify hwcap name string arrays The hwcap string arrays used for generating the contents of /proc/cpuinfo are currently arrays of non-const pointers. There's no need for these pointers to be mutable, so this patch makes them const so that they can be moved to .rodata. Signed-off-by: Dave Martin Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 789fbea..706679d 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -48,7 +48,7 @@ static char *icache_policy_str[] = { unsigned long __icache_flags; -static const char *hwcap_str[] = { +static const char *const hwcap_str[] = { "fp", "asimd", "evtstrm", @@ -62,7 +62,7 @@ static const char *hwcap_str[] = { }; #ifdef CONFIG_COMPAT -static const char *compat_hwcap_str[] = { +static const char *const compat_hwcap_str[] = { "swp", "half", "thumb", @@ -87,7 +87,7 @@ static const char *compat_hwcap_str[] = { "evtstrm" }; -static const char *compat_hwcap2_str[] = { +static const char *const compat_hwcap2_str[] = { "aes", "pmull", "sha1",