Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-20 Thread Ilias Apalodimas
On Thu, 20 Apr 2023 at 10:16, AKASHI Takahiro wrote: > > On Thu, Apr 20, 2023 at 09:35:42AM +0300, Ilias Apalodimas wrote: > > Akashi-san > > > > On Fri, 7 Apr 2023 at 10:33, Ilias Apalodimas > > wrote: > > > > > > On Fri, 7 Apr 2023 at 04:46, AKASHI Takahiro > > > wrote: > > > > > > > > Hi

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-20 Thread AKASHI Takahiro
On Thu, Apr 20, 2023 at 09:35:42AM +0300, Ilias Apalodimas wrote: > Akashi-san > > On Fri, 7 Apr 2023 at 10:33, Ilias Apalodimas > wrote: > > > > On Fri, 7 Apr 2023 at 04:46, AKASHI Takahiro > > wrote: > > > > > > Hi Ilias, > > > > > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-20 Thread Ilias Apalodimas
On Thu, 20 Apr 2023 at 09:35, Ilias Apalodimas wrote: > > Akashi-san > > On Fri, 7 Apr 2023 at 10:33, Ilias Apalodimas > wrote: > > > > On Fri, 7 Apr 2023 at 04:46, AKASHI Takahiro > > wrote: > > > > > > Hi Ilias, > > > > > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: >

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-20 Thread Ilias Apalodimas
Akashi-san On Fri, 7 Apr 2023 at 10:33, Ilias Apalodimas wrote: > > On Fri, 7 Apr 2023 at 04:46, AKASHI Takahiro > wrote: > > > > Hi Ilias, > > > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > > > Tom reports that when building with clang we see this warning: > > > field

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-07 Thread Ilias Apalodimas
On Fri, 7 Apr 2023 at 04:46, AKASHI Takahiro wrote: > > Hi Ilias, > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > > Tom reports that when building with clang we see this warning: > > field guid within 'struct efi_hii_keyboard_layout' is less aligned than > > 'efi_guid_t'

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread Tom Rini
On Fri, Apr 07, 2023 at 10:46:08AM +0900, AKASHI Takahiro wrote: > Hi Ilias, > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > > Tom reports that when building with clang we see this warning: > > field guid within 'struct efi_hii_keyboard_layout' is less aligned than > >

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread AKASHI Takahiro
Hi Ilias, On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > Tom reports that when building with clang we see this warning: > field guid within 'struct efi_hii_keyboard_layout' is less aligned than > 'efi_guid_t' and is usually due to 'struct efi_hii_keyboard_layout' being >

[PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread Ilias Apalodimas
Tom reports that when building with clang we see this warning: field guid within 'struct efi_hii_keyboard_layout' is less aligned than 'efi_guid_t' and is usually due to 'struct efi_hii_keyboard_layout' being packed, which can lead to unaligned accesses [-Wunaligned-access] This happens because