riscv: checkpatch: Fix static const char * array declarations
PATCH 5/5 riscv: checkpatch: Fix static const char * array declarations
From: Rick Chen <[email protected]>
It is reported by checkpatch.pl
WARNING: static const char * array should probably be static const char * const
Signed-off-by Rick Chen <[email protected]>
Signed-off-by Rick Chen <[email protected]>
--- arch/riscv/lib/interrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/lib/interrupts.c +1 -1
@@ -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" ,
Signature · 1 line
2.7.4