arm64: Add prototypes for functions called by entry.S

Functions that are only called by assembly don't always have a
C header file prototype.

Add the prototypes before moving the assembly callers to C.

Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
James Morse 2019-10-25 17:42:11 +01:00 коммит произвёл Catalin Marinas
Родитель b6e43c0e31
Коммит e540e0a7fa
1 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,7 @@
#include <asm/esr.h>
#include <asm/kprobes.h>
#include <asm/ptrace.h>
#include <linux/interrupt.h>
@ -31,5 +32,26 @@ static inline u32 disr_to_esr(u64 disr)
}
asmlinkage void enter_from_user_mode(void);
asmlinkage void do_mem_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void do_sp_pc_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void do_undefinstr(struct pt_regs *regs);
asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr);
asmlinkage void do_debug_exception(unsigned long addr_if_watchpoint,
unsigned int esr, struct pt_regs *regs);
asmlinkage void do_fpsimd_acc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sve_acc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_fpsimd_exc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sysinstr(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sp_pc_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void bad_el0_sync(struct pt_regs *regs, int reason,
unsigned int esr);
asmlinkage void do_cp15instr(unsigned int esr, struct pt_regs *regs);
asmlinkage void el0_svc_handler(struct pt_regs *regs);
asmlinkage void el0_svc_compat_handler(struct pt_regs *regs);
asmlinkage void do_el0_ia_bp_hardening(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
#endif /* __ASM_EXCEPTION_H */