mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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: c8171a86b2
("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>
This commit is contained in:
parent
c8171a86b2
commit
5195c35ac4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue