diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-06-02 20:29:02 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-06-19 10:35:56 +0200 |
commit | c9a1d4f672173b1d0235c5c11b9fb9b030381219 (patch) | |
tree | 451209c51deac74ab8db85969c6a8ecd87a80fd2 /arch/arm/kernel/head-inflate-data.c | |
parent | ARM: 9309/1: add missing syscall prototypes (diff) | |
download | linux-c9a1d4f672173b1d0235c5c11b9fb9b030381219.tar.xz linux-c9a1d4f672173b1d0235c5c11b9fb9b030381219.zip |
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>
Diffstat (limited to 'arch/arm/kernel/head-inflate-data.c')
-rw-r--r-- | arch/arm/kernel/head-inflate-data.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/kernel/head-inflate-data.c b/arch/arm/kernel/head-inflate-data.c index 89a52104d32a..225c0699a12c 100644 --- a/arch/arm/kernel/head-inflate-data.c +++ b/arch/arm/kernel/head-inflate-data.c @@ -8,16 +8,13 @@ #include <linux/init.h> #include <linux/zutil.h> +#include "head.h" /* for struct inflate_state */ #include "../../../lib/zlib_inflate/inftrees.h" #include "../../../lib/zlib_inflate/inflate.h" #include "../../../lib/zlib_inflate/infutil.h" -extern char __data_loc[]; -extern char _edata_loc[]; -extern char _sdata[]; - /* * This code is called very early during the boot process to decompress * the .data segment stored compressed in ROM. Therefore none of the global |