]> git.sur5r.net Git - u-boot/commitdiff
riscv: checkpatch: Fix static const char * array declarations
authorRick Chen <rick@andestech.com>
Mon, 12 Feb 2018 03:24:43 +0000 (11:24 +0800)
committerAndes <uboot@andestech.com>
Fri, 30 Mar 2018 05:13:22 +0000 (13:13 +0800)
It is reported by checkpatch.pl
WARNING: static const char * array
should probably be static const char * const

Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
arch/riscv/lib/interrupts.c

index 075db8ba464dd9898888b397ce9c782cfea10737..923f75275bd4bd52c2d7156358f9224b5d279b6e 100644 (file)
@@ -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",