Skip to contentSkip to conversation

lib: zlib: make __gunzip always static

PATCH New Ben Dooks 1 participant 1 message Jun 16, 2023 Library code

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 lib: zlib: make __gunzip always static

The __gunzip() code looks like it has not been referenced outside of lib/decompress_inflate.c so make it always static to avoid the following warning:

lib/decompress_inflate.c:42:17: warning: symbol '__gunzip' was not declared. Should it be static?

---
 lib/decompress_inflate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/decompress_inflate.c +1 -1
index 6130c42b8e59..e19199f4a684 100644
@@ -39,7 +39,7 @@ static long INIT nofill(void *buffer, unsigned long len)
 }
 
 /* Included from initramfs et al code */
-STATIC int INIT __gunzip(unsigned char *buf, long len,
+static int INIT __gunzip(unsigned char *buf, long len,
 		       long (*fill)(void*, unsigned long),
 		       long (*flush)(void*, unsigned long),
 		       unsigned char *out_buf, long out_len,
Signature · 1 line
2.39.2