lib: make LZ4_decompress_safe_forceExtDict() static

LZ4_decompress_safe_forceExtDict() is only used in
lib/lz4/lz4_decompress.c, make it static to fix the build warning about
"no previous prototype" [1].

[1] https://lore.kernel.org/lkml/202206260948.akgsho1q-lkp@intel.com/

Link: https://lkml.kernel.org/r/1656298965-8698-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Tiezhu Yang 2022-06-27 11:02:45 +08:00 committed by akpm
parent cda83bb8a6
commit 2d8867f3e0
1 changed files with 3 additions and 3 deletions

View File

@ -507,9 +507,9 @@ static int LZ4_decompress_safe_withSmallPrefix(const char *source, char *dest,
(BYTE *)dest - prefixSize, NULL, 0); (BYTE *)dest - prefixSize, NULL, 0);
} }
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest, static int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
int compressedSize, int maxOutputSize, int compressedSize, int maxOutputSize,
const void *dictStart, size_t dictSize) const void *dictStart, size_t dictSize)
{ {
return LZ4_decompress_generic(source, dest, return LZ4_decompress_generic(source, dest,
compressedSize, maxOutputSize, compressedSize, maxOutputSize,