Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tiezhu Yang and committed by
akpm
2d8867f3 cda83bb8

+3 -3
+3 -3
lib/lz4/lz4_decompress.c
··· 507 507 (BYTE *)dest - prefixSize, NULL, 0); 508 508 } 509 509 510 - int LZ4_decompress_safe_forceExtDict(const char *source, char *dest, 511 - int compressedSize, int maxOutputSize, 512 - const void *dictStart, size_t dictSize) 510 + static int LZ4_decompress_safe_forceExtDict(const char *source, char *dest, 511 + int compressedSize, int maxOutputSize, 512 + const void *dictStart, size_t dictSize) 513 513 { 514 514 return LZ4_decompress_generic(source, dest, 515 515 compressedSize, maxOutputSize,