summaryrefslogtreecommitdiffstats
path: root/lib/lzo/lzo1x_compress.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-12-16 05:47:13 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-16 07:46:19 +0100
commit33fb626be08f3877b92e3c1782eac1a9a1575ea5 (patch)
treef2fee3f378121629f892ea9ce6e5a8bd83f891e3 /lib/lzo/lzo1x_compress.c
parentfault-injection: handle EI_ETYPE_TRUE (diff)
downloadlinux-33fb626be08f3877b92e3c1782eac1a9a1575ea5.tar.xz
linux-33fb626be08f3877b92e3c1782eac1a9a1575ea5.zip
lib/lzo/lzo1x_compress.c: make lzogeneric1x_1_compress() static
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>
Diffstat (limited to '')
-rw-r--r--lib/lzo/lzo1x_compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lzo/lzo1x_compress.c b/lib/lzo/lzo1x_compress.c
index 8ad5ba2b86e2..76758e9296ba 100644
--- a/lib/lzo/lzo1x_compress.c
+++ b/lib/lzo/lzo1x_compress.c
@@ -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)
{