From: Tom Rini Date: Thu, 14 Jan 2016 18:02:05 +0000 (-0500) Subject: gunzip.c: Only include gzwrite on CONFIG_CMD_UNZIP X-Git-Tag: v2016.03-rc1~295 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1811b7d38cf6e6caacc083044bc8f0f8015b5627;p=u-boot gunzip.c: Only include gzwrite on CONFIG_CMD_UNZIP Only when we have CONFIG_CMD_UNZIP enabled do we have the 'gzwrite' command. While this command should be separated from CONFIG_CMD_UNZIP we should also only include the write portion of the gz code in that case as well. Signed-off-by: Tom Rini --- diff --git a/lib/gunzip.c b/lib/gunzip.c index d86aa87f68..80b157f99e 100644 --- a/lib/gunzip.c +++ b/lib/gunzip.c @@ -70,6 +70,7 @@ int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) return zunzip(dst, dstlen, src, lenp, 1, i); } +#ifdef CONFIG_CMD_UNZIP __weak void gzwrite_progress_init(u64 expectedsize) { @@ -258,6 +259,7 @@ out: return r; } +#endif /* * Uncompress blocks compressed with zlib without headers