Skip to content

Commit 5195c35

Browse files
committed
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: c8171a8 ("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>
1 parent c8171a8 commit 5195c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/csky/include/asm/traps.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#ifndef __ASM_CSKY_TRAPS_H
44
#define __ASM_CSKY_TRAPS_H
55

6+
#include <linux/linkage.h>
7+
68
#define VEC_RESET 0
79
#define VEC_ALIGN 1
810
#define VEC_ACCESS 2

0 commit comments

Comments
 (0)