From: Tom Rini Date: Thu, 25 Feb 2021 08:29:39 -0500 Subject: [PATCH 1/1] lib: rsa: struct udevice build warning In-Reply-To: <20210217115431.27899-1-xypron.glpk@gmx.de> References: <20210217115431.27899-1-xypron.glpk@gmx.de> Message-ID: <20210225132939.GH10169@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 Wed, Feb 17, 2021 at 12:54:31PM +0100, Heinrich Schuchardt wrote: > Avoid build warnings observed with gcc 10.2 > > In file included from lib/rsa/rsa-keyprop.c:16: > include/u-boot/rsa-mod-exp.h:65:24: warning: > ?struct udevice? declared inside parameter list will not be visible > outside of this definition or declaration > 65 | int rsa_mod_exp(struct udevice *dev, const uint8_t *sig, > | uint32_t sig_len, > | ^~~~~~~ > include/u-boot/rsa-mod-exp.h:96:24: warning: > ?struct udevice? declared inside parameter list will not be visible > outside of this definition or declaration > 96 | int (*mod_exp)(struct udevice *dev, const uint8_t *sig, > | > > by defining struct udevice. > > Fixes: 401d1c4f5d2d ("common: Drop asm/global_data.h from common header") > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: