]> git.baikalelectronics.ru Git - uboot.git/commit
lib: rsa: struct udevice build warning
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 17 Feb 2021 11:54:31 +0000 (12:54 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2021 21:51:48 +0000 (16:51 -0500)
commit0d284c310450ef0cd2964cb38a17055c70ccbe32
tree3f97de2861ea5122dfb7cbc2bf96dd4391623f3f
parent211c2785f0d031a6b5bcef5be1c3ddaea363a1f5
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: a8f86699a83e ("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>
include/u-boot/rsa-mod-exp.h