lib/lzo/lzo1x_compress.c: make lzogeneric1x_1_compress() static
authorJason Yan <yanaijie@huawei.com>
Wed, 16 Dec 2020 04:47:13 +0000 (20:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:19 +0000 (22:46 -0800)
Fix the following sparse warning:

  lib/lzo/lzo1x_compress.c:304:5: warning: symbol 'lzogeneric1x_1_compress' was not declared. Should it be static?

Link: https://lkml.kernel.org/r/20201020031415.136874-1-yanaijie@huawei.com
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Cc: Dave Rodgman <dave.rodgman@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/lzo/lzo1x_compress.c

index 8ad5ba2b86e2da84caecbcf2bd6d0a118e0499b9..76758e9296ba65221fee14ec2884e404a3bf06da 100644 (file)
@@ -301,7 +301,7 @@ finished_writing_instruction:
        return in_end - (ii - ti);
 }
 
-int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
+static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
                     unsigned char *out, size_t *out_len,
                     void *wrkmem, const unsigned char bitstream_version)
 {