]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lz4_decompress: declare LZ4_decompress_safe_withPrefix64k static
authorRajat Asthana <thisisrast7@gmail.com>
Wed, 2 Jun 2021 03:53:13 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:53:13 +0000 (13:53 +1000)
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: Stephen Rothwell <sfr@canb.auug.org.au>
lib/lz4/lz4_decompress.c

index 8a7724a6ce2fb451f0231f1a6ef6c05c11fa4fbf..926f4823d5eac832a5b6e78c5c08228d400ca5ad 100644 (file)
@@ -481,7 +481,7 @@ int LZ4_decompress_fast(const char *source, char *dest, int originalSize)
 
 /* ===== Instantiate a few more decoding cases, used more than once. ===== */
 
-int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
+static int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
                                      int compressedSize, int maxOutputSize)
 {
        return LZ4_decompress_generic(source, dest,