projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda83bb
)
lib: make LZ4_decompress_safe_forceExtDict() static
author
Tiezhu Yang
<yangtiezhu@loongson.cn>
Mon, 27 Jun 2022 03:02:45 +0000
(11:02 +0800)
committer
akpm
<akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:39 +0000
(17:31 -0700)
LZ4_decompress_safe_forceExtDict() is only used in
lib/lz4/lz4_decompress.c, make it static to fix the build warning about
"no previous prototype" [1].
[1] https://lore.kernel.org/lkml/
202206260948
.akgsho1q-lkp@intel.com/
Link:
https://lkml.kernel.org/r/1656298965-8698-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/lz4/lz4_decompress.c
patch
|
blob
|
history
diff --git
a/lib/lz4/lz4_decompress.c
b/lib/lz4/lz4_decompress.c
index fd1728d94babb28f997bf10c2b2180ae5cdec2c0..59fe69a638000ec000a49fad540fd2715c7c07a1 100644
(file)
--- a/
lib/lz4/lz4_decompress.c
+++ b/
lib/lz4/lz4_decompress.c
@@
-507,9
+507,9
@@
static int LZ4_decompress_safe_withSmallPrefix(const char *source, char *dest,
(BYTE *)dest - prefixSize, NULL, 0);
}
-int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
- int compressedSize, int maxOutputSize,
- const void *dictStart, size_t dictSize)
+
static
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
+
int compressedSize, int maxOutputSize,
+
const void *dictStart, size_t dictSize)
{
return LZ4_decompress_generic(source, dest,
compressedSize, maxOutputSize,