From: Tom Rini Date: Fri, 15 Sep 2017 08:53:45 -0400 Subject: [U-Boot] [PATCH] spl: fit: Fixed incompatible type warning in spl_load_fit_image() In-Reply-To: <1505461589-17532-1-git-send-email-jjhiblot@ti.com> References: <1505461589-17532-1-git-send-email-jjhiblot@ti.com> Message-ID: <20170915125345.GD4560@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Sep 15, 2017 at 09:46:29AM +0200, Jean-Jacques Hiblot wrote: > Warning introduced in commit 7264f29 (spl: fit: Eanble GZIP support for > image decompression) > > Signed-off-by: Jean-Jacques Hiblot > --- > common/spl/spl_fit.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c > index 49ccf1c..22d3161 100644 > --- a/common/spl/spl_fit.c > +++ b/common/spl/spl_fit.c > @@ -197,11 +197,13 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector, > IS_ENABLED(CONFIG_SPL_GZIP) && > image_comp == IH_COMP_GZIP && > type == IH_TYPE_KERNEL) { > + long unsigned int sz = length; > if (gunzip((void *)load_addr, CONFIG_SYS_BOOTM_LEN, > - src, &length)) { > + src, &sz)) { > puts("Uncompressing error\n"); > return -EIO; > } > + length = sz; > } else { > memcpy((void *)load_addr, src, length); > } York posted a fix for this yesterday at https://patchwork.ozlabs.org/patch/813927/ and since he introduced the warning I'm going to grab that one, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: