diff options
author | Mark Rutland <mark.rutland@arm.com> | 2019-08-13 15:16:37 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-13 18:32:17 +0100 |
commit | 0bf136a8cf11502643c27c8de1b1db8f161a31ed (patch) | |
tree | 2de7d9e110638622045646c757952f9f5c61b3d5 /arch/arm64/kernel | |
parent | 80d838122643a09a9f99824adea4b4261e4451e6 (diff) | |
download | linux-0bf136a8cf11502643c27c8de1b1db8f161a31ed.tar.bz2 |
arm64: constify icache_policy_str[]
The icache_policy_str[] array contains compile-time constant data, and
is never intentionally modified, so let's mark it as const.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/cpuinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 876055e37352..05933c065732 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -33,7 +33,7 @@ DEFINE_PER_CPU(struct cpuinfo_arm64, cpu_data); static struct cpuinfo_arm64 boot_cpu_data; -static char *icache_policy_str[] = { +static const char *icache_policy_str[] = { [0 ... ICACHE_POLICY_PIPT] = "RESERVED/UNKNOWN", [ICACHE_POLICY_VIPT] = "VIPT", [ICACHE_POLICY_PIPT] = "PIPT", |