diff options
| author | Rick Chen <[email protected]> | 2018-02-12 11:24:43 +0800 |
|---|---|---|
| committer | Andes <[email protected]> | 2018-03-30 13:13:22 +0800 |
| commit | 22e8c0f02b4f1b79ebc752c662498fb6fbe30935 (patch) | |
| tree | cad3cf3ed9226a938334f13de876bee456307d95 | |
| parent | b9076495db36feb862401696c587afd2ffa5a5af (diff) | |
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 <[email protected]>
Signed-off-by: Rick Chen <[email protected]>
| -rw-r--r-- | arch/riscv/lib/interrupts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index 075db8ba464..923f75275bd 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", |
