summaryrefslogtreecommitdiffstats
path: root/arch/csky
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2023-08-30 05:31:59 -0400
committerGuo Ren <guoren@linux.alibaba.com>2023-08-30 05:54:47 -0400
commit5195c35ac4f09bc45bde23b98d74c4f5d62bea65 (patch)
tree2e2ccf39d588da92370874a90d0494209e643707 /arch/csky
parentc8171a86b27401aa1f492dd1f080f3102264f1ab (diff)
downloadlinux-5195c35ac4f09bc45bde23b98d74c4f5d62bea65.tar.gz
linux-5195c35ac4f09bc45bde23b98d74c4f5d62bea65.tar.bz2
linux-5195c35ac4f09bc45bde23b98d74c4f5d62bea65.zip
csky: Fixup compile error
Add header file for asmlinkage macro. Error log: In file included from arch/csky/include/asm/ptrace.h:7, from arch/csky/include/asm/elf.h:6, from include/linux/elf.h:6, from kernel/extable.c:6: arch/csky/include/asm/traps.h:43:11: error: expected ';' before 'void' 43 | asmlinkage void do_trap_unknown(struct pt_regs *regs); | ^~~~~ Fixes: c8171a86b274 ("csky: Fixup -Wmissing-prototypes warning") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/csky')
-rw-r--r--arch/csky/include/asm/traps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/csky/include/asm/traps.h b/arch/csky/include/asm/traps.h
index 1e7d303b91e9..732c4aaa2e26 100644
--- a/arch/csky/include/asm/traps.h
+++ b/arch/csky/include/asm/traps.h
@@ -3,6 +3,8 @@
#ifndef __ASM_CSKY_TRAPS_H
#define __ASM_CSKY_TRAPS_H
+#include <linux/linkage.h>
+
#define VEC_RESET 0
#define VEC_ALIGN 1
#define VEC_ACCESS 2