diff options
author | Rick Chen <rick@andestech.com> | 2018-02-12 11:24:43 +0800 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2018-03-30 13:13:22 +0800 |
commit | 22e8c0f02b4f1b79ebc752c662498fb6fbe30935 (patch) | |
tree | cad3cf3ed9226a938334f13de876bee456307d95 /arch/riscv | |
parent | b9076495db36feb862401696c587afd2ffa5a5af (diff) | |
download | u-boot-22e8c0f02b4f1b79ebc752c662498fb6fbe30935.tar.gz u-boot-22e8c0f02b4f1b79ebc752c662498fb6fbe30935.tar.xz u-boot-22e8c0f02b4f1b79ebc752c662498fb6fbe30935.zip |
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>
Diffstat (limited to 'arch/riscv')
-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 075db8ba46..923f75275b 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", |