diff options
author | Marek Behún <marek.behun@nic.cz> | 2021-05-20 13:23:56 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-24 14:21:30 -0400 |
commit | 2bdc6f579b698ea32cf112310e903238d92a3c5a (patch) | |
tree | d4b155edfbe313c360d8a2113fd698d0d605beb8 /drivers/ddr/microchip/ddr2.c | |
parent | 46c3e29219e445de150e60e371cfec75f6fee524 (diff) | |
download | u-boot-2bdc6f579b698ea32cf112310e903238d92a3c5a.tar.gz u-boot-2bdc6f579b698ea32cf112310e903238d92a3c5a.tar.xz u-boot-2bdc6f579b698ea32cf112310e903238d92a3c5a.zip |
efi_loader: fix warning when linking with LTO
When linking with LTO, the compiler complains about type mismatch of
variables `__efi_runtime_start`, `__efi_runtime_stop`,
`__efi_runtime_rel_start` and `__efi_runtime_rel_stop`:
include/efi_loader.h:218:21: warning: type of ‘__efi_runtime_start’
does not match original
declaration [-Wlto-type-mismatch]
218 | extern unsigned int __efi_runtime_start, __efi_runtime_stop;
| ^
arch/sandbox/lib/sections.c:7:6: note: ‘__efi_runtime_start’ was
previously declared here
7 | char __efi_runtime_start[0] __attribute__((section(".__efi_run
| ^
Change the type to char[] in include/efi_loader.h.
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions