From 485a94a2b15363ee92cf07fd3c8b42e57abcf455 Mon Sep 17 00:00:00 2001 From: Rajat Asthana Date: Wed, 30 Jun 2021 18:56:13 -0700 Subject: [PATCH] BACKPORT: 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 Change-Id: If21f69d56189391d4038c8fb75129e3984a73d2c Reviewed-by: Nick Terrell Cc: Gao Xiang Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [ Tashar02: Backport to k4.19 ] Signed-off-by: Tashfin Shakeer Rhythm (cherry picked from commit e4f72cae29e9cc08ee7f8e30918fc3a71c47f39b) Signed-off-by: TogoFire Signed-off-by: Kanishk Signed-off-by: Sorayukii --- lib/lz4/lz4_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lz4/lz4_decompress.c b/lib/lz4/lz4_decompress.c index 5b6705c4b2d2..fd1728d94bab 100644 --- a/lib/lz4/lz4_decompress.c +++ b/lib/lz4/lz4_decompress.c @@ -485,7 +485,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,