diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-16 18:06:41 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-05-25 18:44:03 +0200 |
commit | e13d32e99264e0b63b01417e2f2db627f4507b97 (patch) | |
tree | 1f2ef35c2e69059e2c6d871c5afea5feb4d28881 /arch/arm64/include/asm/traps.h | |
parent | arm64: signal: include asm/exception.h (diff) | |
download | linux-e13d32e99264e0b63b01417e2f2db627f4507b97.tar.xz linux-e13d32e99264e0b63b01417e2f2db627f4507b97.zip |
arm64: move early_brk64 prototype to header
The prototype used for calling early_brk64() is in the file that calls
it, which is the wrong place, as it is not included for the definition:
arch/arm64/kernel/traps.c:1100:12: error: no previous prototype for 'early_brk64' [-Werror=missing-prototypes]
Move it to an appropriate header instead.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20230516160642.523862-15-arnd@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/traps.h')
-rw-r--r-- | arch/arm64/include/asm/traps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/traps.h b/arch/arm64/include/asm/traps.h index 1f361e2da516..d66dfb3a72dd 100644 --- a/arch/arm64/include/asm/traps.h +++ b/arch/arm64/include/asm/traps.h @@ -29,6 +29,8 @@ void arm64_force_sig_fault(int signo, int code, unsigned long far, const char *s void arm64_force_sig_mceerr(int code, unsigned long far, short lsb, const char *str); void arm64_force_sig_ptrace_errno_trap(int errno, unsigned long far, const char *str); +int early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs); + /* * Move regs->pc to next instruction and do necessary setup before it * is executed. |