Skip to contentSkip to conversation

riscv: checkpatch: Fix static const char * array declarations

PATCH New Andes 1 participant 1 message Mar 13, 2018 RISC-V

lore
Share & tools
lore

Andes

author
#0 lore raw

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

---
 arch/riscv/lib/interrupts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/lib/interrupts.c +1 -1
index 075db8b..923f752 100644
@@ -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