u-boot/arch/x86
Andy Shevchenko 19b6e1ba8c x86: acpi: Annotate struct acpi_table_header with __packed
GCC 9.2 starts complaining about possible pointer misalignment of
pointers to the unpacked (alignment=4) structures in the packed
(alignment=1) ones:

  CC      arch/x86/cpu/tangier/acpi.o
arch/x86/cpu/tangier/acpi.c: In function ‘acpi_create_fadt’:
arch/x86/cpu/tangier/acpi.c:22:37: warning: taking address of packed
member of ‘struct acpi_fadt’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  22 |  struct acpi_table_header *header = &(fadt->header);

  CC      arch/x86/lib/acpi_table.o
arch/x86/lib/acpi_table.c: In function ‘acpi_create_spcr’:
arch/x86/lib/acpi_table.c:366:37: warning: taking address of packed
member of ‘struct acpi_spcr’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  366 |  struct acpi_table_header *header = &(spcr->header);

Fix the potential issues by annotating embedded structures with
__packed even though they are packed naturally.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: add GCC version number in the commit message]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2019-09-10 16:17:55 +08:00
..
cpu x86: show UEFI images involved in crash 2019-09-10 14:27:15 +08:00
dts x86: slimbootloader: Add a slimbootloader device tree 2019-08-09 22:24:02 +08:00
include/asm x86: acpi: Annotate struct acpi_table_header with __packed 2019-09-10 16:17:55 +08:00
lib x86: efi_loader: Use efi_add_conventional_memory_map() 2019-09-10 14:31:42 +08:00
config.mk x86: efi: app: Generate Microsoft PE format compliant image 2018-12-02 21:59:36 +01:00
Kconfig x86: Add new slimbootloader CPU type 2019-08-09 22:24:02 +08:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00