From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 8 Mar 2021 15:56:49 +0800 Subject: [PATCH u-boot 13/39] efi_loader: fix warning when linking with LTO In-Reply-To: <20210307042538.21229-14-marek.behun@nic.cz> References: <20210307042538.21229-1-marek.behun@nic.cz> <20210307042538.21229-14-marek.behun@nic.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Mar 7, 2021 at 12:26 PM 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 > --- > include/efi_loader.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng