Skip to content

Commit 7fde9d6

Browse files
cppfanboytorvalds
authored andcommitted
lz4_decompress: declare LZ4_decompress_safe_withPrefix64k static
Declare LZ4_decompress_safe_withPrefix64k as static to fix sparse warning: > warning: symbol 'LZ4_decompress_safe_withPrefix64k' was not declared. > Should it be static? Link: https://lkml.kernel.org/r/20210511154345.610569-1-thisisrast7@gmail.com Signed-off-by: Rajat Asthana <thisisrast7@gmail.com> Reviewed-by: Nick Terrell <terrelln@fb.com> Cc: Gao Xiang <hsiangkao@redhat.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4c52729 commit 7fde9d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/lz4/lz4_decompress.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ int LZ4_decompress_fast(const char *source, char *dest, int originalSize)
481481

482482
/* ===== Instantiate a few more decoding cases, used more than once. ===== */
483483

484-
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
484+
static int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
485485
int compressedSize, int maxOutputSize)
486486
{
487487
return LZ4_decompress_generic(source, dest,

0 commit comments

Comments
 (0)