zephyr/arch
Carles Cufi 4f64ae383d x86: acpi: Fix address-of-packed-mem warning
The warning below appears once -Waddress-of-packed-mem is enabled:

/home/carles/src/zephyr/zephyr/arch/x86/core/acpi.c: In function
'z_acpi_find_table':
/home/carles/src/zephyr/zephyr/arch/x86/core/acpi.c:190:24: warning:
taking address of packed member of 'struct acpi_xsdt' may result in an
unaligned pointer value [-Waddress-of-packed-member]
  190 |    for (uint64_t *tp = &xsdt->table_ptrs[0]; tp < end; tp++) {

To avoid the warning, use an intermediate void * variable.

More info in #16587.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2021-12-10 14:08:59 +01:00
..
arc soc: arc: fix ARC_HAS_ACCL_REGS settings 2021-12-02 11:32:14 -06:00
arm arch: cortex_m: Fix dwt cyccnt assert 2021-12-10 12:27:49 +01:00
arm64 xenvm: arm64: add Xen Enlighten and event channel support 2021-12-07 12:15:38 -05:00
common cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00
nios2 arch: nios2: Fix 10.4 violations 2021-04-10 09:59:37 -04:00
posix pm: Remove unused parameter 2021-11-17 11:15:49 -05:00
riscv coredump: add support for RISC-V 2021-12-08 08:54:32 -05:00
sparc arch/sparc: Add hook for CONFIG_SCHED_THREAD_USAGE accounting in ISRs 2021-11-08 21:32:20 -05:00
x86 x86: acpi: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
xtensa xtensa: introduce support for GDB stub 2021-11-30 15:24:00 -05:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig coredump: add support for RISC-V 2021-12-08 08:54:32 -05:00