u-boot/arch/arm/cpu/armv7
Heinrich Schuchardt 9bd34a69a4 sunxi: psci: avoid error address-of-packed-member
Compiling with GCC 9.2.1 leads to build errors:

arch/arm/cpu/armv7/sunxi/psci.c: In function ‘sunxi_cpu_set_power’:
arch/arm/cpu/armv7/sunxi/psci.c:144:21: error: taking address of packed
member of ‘struct sunxi_cpucfg_reg’ may result in an unaligned pointer
value [-Werror=address-of-packed-member]
  144 |  sunxi_power_switch(&cpucfg->cpu1_pwr_clamp, &cpucfg->cpu1_pwroff,
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm/cpu/armv7/sunxi/psci.c:144:46: error: taking address of packed
member of ‘struct sunxi_cpucfg_reg’ may result in an unaligned pointer
value [-Werror=address-of-packed-member]
  144 |  sunxi_power_switch(&cpucfg->cpu1_pwr_clamp, &cpucfg->cpu1_pwroff,
      |                                              ^~~~~~~~~~~~~~~~~~~~

Use memcpy() and void* pointers to resolve the problem caused by packing
the struct sunxi_cpucfg_reg.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
2019-12-18 20:13:34 +05:30
..
bcm235xx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm281xx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcmcygnus SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcmnsp SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iproc-common common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
kona-common common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
ls102xa common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
s5p-common common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
stv0991 common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
sunxi sunxi: psci: avoid error address-of-packed-member 2019-12-18 20:13:34 +05:30
vf610 common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
arch_timer.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
cache_v7.c common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
cache_v7_asm.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cp15.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
exception_level.c common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
Kconfig ARM: HYP/non-sec: enable ARMV7_LPAE if HYP mode is supported 2018-07-25 14:57:43 +02:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile efi_loader: refactor switch to non-secure mode 2019-02-13 09:40:06 +01:00
mpu_v7r.c common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
nonsec_virt.S ARM: HYP/non-sec: migrate stack 2018-07-25 14:57:43 +02:00
psci-common.c psci: arm: remove armv7 function psci_save_target_pc 2018-05-07 11:52:55 -04:00
psci.S ARM: PSCI: initialize stack pointer on secondary CPUs 2018-07-23 10:53:12 +02:00
sctlr.S arm: armv7: allow unaligned memory access 2018-06-03 15:27:21 +02:00
smccc-call.S arm: Leave smccc calls in .text when efi_loader=n 2019-02-13 09:40:06 +01:00
start.S CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
syslib.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
virt-dt.c libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
virt-v7.c common: Move some SMP functions out of common.h 2019-12-02 18:23:14 -05:00