ARM: 9310/1: xip-kernel: add __inflate_kernel_data prototype
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Jun 2023 18:29:02 +0000 (19:29 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 19 Jun 2023 08:35:56 +0000 (09:35 +0100)
commitc9a1d4f672173b1d0235c5c11b9fb9b030381219
tree451209c51deac74ab8db85969c6a8ecd87a80fd2
parentbe0796b07ba845f40ab90bc3fead01f757a6d98a
ARM: 9310/1: xip-kernel: add __inflate_kernel_data prototype

The kernel .data decompression is called from assembler, so it does
not need a prototype, but adding one avoids this W=1 warning:

arch/arm/kernel/head-inflate-data.c:35:12: error: no previous prototype for '__inflate_kernel_data' [-Werror=missing-prototypes]

The same file contains a few extern declarations for assembler
symbols, move those into the header as well for consistency.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/head-inflate-data.c
arch/arm/kernel/head.h [new file with mode: 0644]