u-boot/arch/x86/include/asm
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
..
acpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-baytrail x86: acpi: Remove redundant Offset (0x00) 2018-11-06 13:35:06 +08:00
arch-braswell SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-broadwell x86: broadwell: Add support for serial I/O devices 2019-02-20 15:27:10 +08:00
arch-coreboot SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-ivybridge sound: x86: link: Add sound support 2019-02-20 15:27:09 +08:00
arch-qemu x86: qemu: Support getting high memory size 2019-09-10 14:19:39 +08:00
arch-quark x86: acpi: Remove redundant Offset (0x00) 2018-11-06 13:35:06 +08:00
arch-queensbay SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-slimbootloader x86: slimbootloader: Set TSC information for tsc_timer 2019-08-09 22:24:02 +08:00
arch-tangier x86: acpi: Slightly reduce binary size of ACPI tables for Tangier 2019-09-10 14:19:39 +08:00
fsp x86: Add a common HOB library 2019-08-09 22:24:02 +08:00
video x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
acpi.h x86: acpi: Move APIs unrelated to ACPI tables generation to a separate library 2018-07-20 09:33:22 +08:00
acpi_s3.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
acpi_table.h x86: acpi: Annotate struct acpi_table_header with __packed 2019-09-10 16:17:55 +08:00
atomic.h x86: Add atomic operations 2015-04-29 21:02:33 -06:00
bitops.h x86: Define PLATFORM__SET_BIT for generic_set_bit() 2018-05-15 21:44:05 -04:00
bootm.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootparam.h x86: zimage: Remove acpi_rsdp_addr propagation to kernel boot parameters 2018-08-30 11:23:15 +08:00
byteorder.h x86: Fix up byteorder.h for x86_64 2017-02-06 11:38:46 +08:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cmos_layout.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
control_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot_tables.h x86: Add a forward struct declaration in coreboot_tables.h 2019-07-10 16:52:58 -06:00
cpu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu_x86.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma-mapping.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
e820.h x86: Rename e820entry to e820_entry 2018-04-16 16:54:51 +08:00
early_cmos.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
global_data.h x86: Remove x86 specific GD flags as they are not referenced at all 2019-08-18 21:54:10 +08:00
gpio.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
handoff.h x86: Add a handoff header file 2019-05-08 13:02:12 +08:00
hob.h x86: Add a common HOB library 2019-08-09 22:24:02 +08:00
i8254.h sound: x86: Add beeping support in i8254 2019-02-20 15:27:09 +08:00
i8259.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ibmpc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
interrupt.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.h x86: Adjust I/O macros to work on 64-bit machines 2019-02-20 15:25:29 +08:00
ioapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioctl.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
irq.h x86: irq: Support discrete PIRQ routing registers via device tree 2018-06-13 09:50:57 +08:00
ist.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
linkage.h x86: move arch-specific asmlinkage to <asm/linkage.h> 2014-12-15 07:22:53 -07:00
lpc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
me_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
microcode.h x86: Use microcode update from device tree for all processors 2018-07-02 09:23:28 +08:00
mp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpspec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrccache.h x86: Support saving MRC data from SPL 2019-05-08 13:02:14 +08:00
msr-index.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
msr.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtrr.h x86: Update mtrr functions to allow leaving cache alone 2018-10-09 04:40:27 -06:00
pch_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pirq_routing.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pnp_def.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h x86: Change __kernel_size_t conditionals to use compiler provided defines 2018-06-24 08:56:04 +08:00
post.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor-flags.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
processor.h x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
ptrace.h x86: Display correct CS/EIP/EFLAGS when there is an error code 2015-07-28 10:36:21 -06:00
report_platform.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
scu.h x86: cpu: introduce scu_ipc_raw_command() 2018-09-17 14:34:15 +08:00
sections.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
setjmp.h x86: Add 64-bit setjmp/longjmp implementation 2018-06-24 08:56:04 +08:00
sfi.h SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
sipi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
speedstep.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.h x86: Add a simple TPL implementation 2019-05-08 13:02:18 +08:00
string.h x86: do not use i386 code for x86_64 memory functions 2019-02-13 09:40:06 +01:00
tables.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
turbo.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
types.h arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
u-boot-x86.h x86: Add a way to reinit the cpu 2019-05-08 13:02:11 +08:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
zimage.h x86: zimage: Support booting Linux kernel from an EFI payload 2018-08-30 11:23:14 +08:00