Browse Source

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 <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
Rick Chen 7 năm trước cách đây
mục cha
commit
22e8c0f02b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/riscv/lib/interrupts.c

+ 1 - 1
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",