Skip to content
Snippets Groups Projects
Commit 22e8c0f0 authored by Rick Chen's avatar Rick Chen Committed by Andes
Browse files

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: default avatarRick Chen <rick@andestech.com>
Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
parent b9076495
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment