diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-02-17 12:54:31 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-24 16:51:48 -0500 |
commit | bc18f31e4a3f13e09b6e9d04b282c2579b519ebf (patch) | |
tree | 3f97de2861ea5122dfb7cbc2bf96dd4391623f3f /include/u-boot | |
parent | 872b1921d323b57e84aaa22d258ced39b32d55e8 (diff) | |
download | u-boot-bc18f31e4a3f13e09b6e9d04b282c2579b519ebf.zip u-boot-bc18f31e4a3f13e09b6e9d04b282c2579b519ebf.tar.gz u-boot-bc18f31e4a3f13e09b6e9d04b282c2579b519ebf.tar.bz2 |
lib: rsa: struct udevice build warning
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 <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/u-boot')
-rw-r--r-- | include/u-boot/rsa-mod-exp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/u-boot/rsa-mod-exp.h b/include/u-boot/rsa-mod-exp.h index 7b7c291..fc9557c 100644 --- a/include/u-boot/rsa-mod-exp.h +++ b/include/u-boot/rsa-mod-exp.h @@ -9,6 +9,8 @@ #include <errno.h> #include <image.h> +struct udevice; + /** * struct key_prop - holder for a public key properties * |