From: Rick Chen Date: Mon, 12 Feb 2018 03:24:43 +0000 (+0800) Subject: riscv: checkpatch: Fix static const char * array declarations X-Git-Tag: v2018.05-rc1~4^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22e8c0f02b4f1b79ebc752c662498fb6fbe30935;p=u-boot riscv: checkpatch: Fix static const char * array declarations It is reported by checkpatch.pl WARNING: static const char * array should probably be static const char * const Signed-off-by: Rick Chen Signed-off-by: Rick Chen --- diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index 075db8ba46..923f75275b 100644 --- a/arch/riscv/lib/interrupts.c +++ b/arch/riscv/lib/interrupts.c @@ -63,7 +63,7 @@ __attribute__((weak)) void timer_interrupt(struct pt_regs *regs) static void _exit_trap(int code, uint epc, struct pt_regs *regs) { - static const char *exception_code[] = { + static const char * const exception_code[] = { "Instruction address misaligned", "Instruction access fault", "Illegal instruction",