[PATCH u-boot v4 07/36] efi_loader: fix warning when linking with LTO

Tom Rini trini at konsulko.com
Tue May 25 02:54:48 CEST 2021


On Thu, May 20, 2021 at 01:23:56PM +0200, Marek Behún wrote:

> 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 at nic.cz>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/f26756de/attachment.sig>


More information about the U-Boot mailing list