u-boot/include/u-boot
Heinrich Schuchardt bc18f31e4a 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: 401d1c4f5d ("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>
2021-02-24 16:51:48 -05:00
..
aes.h fit: cipher: aes: allow to store the IV in the FIT image 2020-10-12 21:30:37 -04:00
crc.h include/u-boot/crc.h: pull 'uint' definition on musl targets 2020-01-03 09:47:10 -05:00
md5.h GCC47: Fix warning in md5.c 2012-04-29 14:14:08 +02:00
rsa-checksum.h Add support for SHA384 and SHA512 2020-06-12 13:14:07 -04:00
rsa-mod-exp.h lib: rsa: struct udevice build warning 2021-02-24 16:51:48 -05:00
rsa.h lib: rsa: export rsa_verify_with_pkey() 2020-07-11 23:14:16 +02:00
sha1.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sha256.h rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
sha512.h Add support for SHA384 and SHA512 2020-06-12 13:14:07 -04:00
u-boot.lds.h start a linker script helper file 2009-08-23 22:33:33 +02:00
variadic-macro.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zlib.h include/u-boot, lib/zlib: add sources for zlib decompression 2020-08-07 22:31:32 -04:00