summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/insn.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2019-08-13 15:16:38 +0100
committerWill Deacon <will@kernel.org>2019-08-13 18:32:17 +0100
commit0da23df2ff043c8d39b389e32ee68af64b5f408e (patch)
treea9928c8f11d061ef4750a317ec0b42d5e086c5ed /arch/arm64/kernel/insn.c
parent0bf136a8cf11502643c27c8de1b1db8f161a31ed (diff)
downloadlinux-stable-0da23df2ff043c8d39b389e32ee68af64b5f408e.tar.gz
linux-stable-0da23df2ff043c8d39b389e32ee68af64b5f408e.tar.bz2
linux-stable-0da23df2ff043c8d39b389e32ee68af64b5f408e.zip
arm64: constify aarch64_insn_encoding_class[]
The aarch64_insn_encoding_class[] 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/insn.c')
-rw-r--r--arch/arm64/kernel/insn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/insn.c b/arch/arm64/kernel/insn.c
index 84b059ed04fc..d801a7094076 100644
--- a/arch/arm64/kernel/insn.c
+++ b/arch/arm64/kernel/insn.c
@@ -26,7 +26,7 @@
#define AARCH64_INSN_N_BIT BIT(22)
#define AARCH64_INSN_LSL_12 BIT(22)
-static int aarch64_insn_encoding_class[] = {
+static const int aarch64_insn_encoding_class[] = {
AARCH64_INSN_CLS_UNKNOWN,
AARCH64_INSN_CLS_UNKNOWN,
AARCH64_INSN_CLS_UNKNOWN,