linux-stable/arch/mips/boot/compressed
Arnd Bergmann 1b5e6f4ec0 mips: decompress: fix add missing prototypes
Patch series "mips: address -Wmissing-prototypes warnings".

Address the -Wmissing-prototypes warnings that showed up in mips as the
last major architecture after my patch to enable the option everywhere.


This patch (of 20):

The mips decompressor has some string functions defined locally that are
not declared in the right place:

arch/mips/boot/compressed/dbg.c:12:13: error: no previous prototype for 'putc' [-Werror=missing-prototypes]
arch/mips/boot/compressed/dbg.c:16:6: error: no previous prototype for 'puts' [-Werror=missing-prototypes]
arch/mips/boot/compressed/dbg.c:26:6: error: no previous prototype for 'puthex' [-Werror=missing-prototypes]
arch/mips/boot/compressed/string.c:11:7: error: no previous prototype for 'memcpy' [-Werror=missing-prototypes]
arch/mips/boot/compressed/string.c:22:7: error: no previous prototype for 'memset' [-Werror=missing-prototypes]
arch/mips/boot/compressed/string.c:32:15: error: no previous prototype for 'memmove' [-Werror=missing-prototypes]
arch/mips/boot/compressed/decompress.c:43:6: error: no previous prototype for 'error' [-Werror=missing-prototypes]
arch/mips/boot/compressed/decompress.c:91:6: error: no previous prototype for 'decompress_kernel' [-Werror=missing-prototypes]

Include the string.h header where needed and add a decompress.h header to
have shared prototypes for the rest.

Link: https://lkml.kernel.org/r/20231204115710.2247097-1-arnd@kernel.org
Link: https://lkml.kernel.org/r/20231204115710.2247097-2-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-12-10 17:21:38 -08:00
..
Makefile mips: Enable KCSAN 2022-02-22 09:45:05 +01:00
ashldi3.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
bswapdi.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
bswapsi.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
calc_vmlinuz_load_addr.c MIPS: fix build on non-linux hosts 2019-06-19 15:55:53 -07:00
clz_ctz.c MIPS: compressed: Fix build with ZSTD compression 2022-01-09 15:43:07 +01:00
dbg.c mips: decompress: fix add missing prototypes 2023-12-10 17:21:38 -08:00
decompress.c mips: decompress: fix add missing prototypes 2023-12-10 17:21:38 -08:00
decompress.h mips: decompress: fix add missing prototypes 2023-12-10 17:21:38 -08:00
dummy.c
head.S MIPS: zboot: Avoid endless loop in clear BSS. 2021-01-07 17:12:14 +01:00
ld.script MIPS: zboot: put appended dtb into a section 2020-11-06 11:28:16 +01:00
string.c mips: decompress: fix add missing prototypes 2023-12-10 17:21:38 -08:00
uart-16550.c MIPS: AR7: remove platform 2023-10-19 10:39:46 +02:00
uart-alchemy.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uart-ath79.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
uart-prom.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00