summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/cpuinfo.c
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2015-07-30 16:36:25 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2015-10-21 15:36:00 +0100
commit9299b24712400d1cfe3dcf3e5dcb6cac2940df56 (patch)
tree69b39496eba8399dcc57440fba7e51a0bf3fa761 /arch/arm64/kernel/cpuinfo.c
parent4db8e5ea6b07ae83e4361aee3f967f7126e01fa4 (diff)
downloadlinux-9299b24712400d1cfe3dcf3e5dcb6cac2940df56.tar.bz2
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 <Dave.Martin@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/cpuinfo.c')
-rw-r--r--arch/arm64/kernel/cpuinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index 789fbea92b79..706679d0a0b4 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",