arm64: move early_brk64 prototype to header
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 16:06:41 +0000 (18:06 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 May 2023 16:44:03 +0000 (17:44 +0100)
commite13d32e99264e0b63b01417e2f2db627f4507b97
tree1f2ef35c2e69059e2c6d871c5afea5feb4d28881
parent8ada7aab02ee9b07c8539a5c9cc452520b183a72
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>
arch/arm64/include/asm/traps.h
arch/arm64/mm/fault.c