decompressor: provide missing prototypes
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2023 13:19:31 +0000 (15:19 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 10 Jun 2023 00:44:17 +0000 (17:44 -0700)
commit004444486184a7222a7b4bde0c568f6da3621b25
tree3f14660712a5d58379b4e0db0fadd80cc50b7b0b
parent6aee6723f1b3a4453b327fdafcde362e9befcc11
decompressor: provide missing prototypes

The entry points for the decompressor don't always have a prototype
included in the .c file:

lib/decompress_inflate.c:42:17: error: no previous prototype for '__gunzip' [-Werror=missing-prototypes]
lib/decompress_unxz.c:251:17: error: no previous prototype for 'unxz' [-Werror=missing-prototypes]
lib/decompress_unzstd.c:331:17: error: no previous prototype for 'unzstd' [-Werror=missing-prototypes]

Include the correct headers for unxz and unzstd, and mark the inflate
function above as unconditionally 'static' to avoid these warnings.

Link: https://lkml.kernel.org/r/20230517131936.936840-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/decompress_inflate.c
lib/decompress_unxz.c
lib/decompress_unzstd.c