From patchwork Fri May 22 12:07:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 246254 List-Id: U-Boot discussion From: michael at walle.cc (Michael Walle) Date: Fri, 22 May 2020 14:07:37 +0200 Subject: [PATCH 3/4] cmd: zip: fix implicit declaration warning In-Reply-To: <20200522120738.13376-1-michael@walle.cc> References: <20200522120738.13376-1-michael@walle.cc> Message-ID: <20200522120738.13376-4-michael@walle.cc> Fix the following warning: cmd/zip.c: In function ?do_zip?: cmd/zip.c:30:6: warning: implicit declaration of function ?gzip?; did you mean ?do_zip?? [-Wimplicit-function-declaration] if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0) ^~~~ do_zip Include gzip.h header which declares the gzip() function. Signed-off-by: Michael Walle Reviewed-by: Simon Glass --- cmd/zip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/zip.c b/cmd/zip.c index b433f1889f..8ad3768464 100644 --- a/cmd/zip.c +++ b/cmd/zip.c @@ -7,6 +7,7 @@ #include #include #include +#include static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) {