[PATCH 1/1] sunxi: remove __packed from struct sunxi_prcm_reg
Jagan Teki
jagan at amarulasolutions.com
Wed Dec 18 15:49:39 CET 2019
On Wed, Dec 18, 2019 at 3:25 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> struct sunxi_prcm_reg is naturally packed. There is no need to define it as
> packed. Defining it as packed leads to compilation errors with GCC 9.2.1:
>
> CC arch/arm/lib/reloc_arm_efi.o
> arch/arm/cpu/armv7/sunxi/psci.c: In function ‘sunxi_cpu_set_power’:
> :qarch/arm/cpu/armv7/sunxi/psci.c:163:21: error: taking address of packed
> member of ‘struct sunxi_prcm_reg’ may result in an unaligned pointer value
> [-Werror=address-of-packed-member]
> 163 | sunxi_power_switch(&prcm->cpu_pwr_clamp[cpu], &prcm->cpu_pwroff,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> Remove __packed attribute from struct sunxi_prcm_reg.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
Applied to u-boot-sunxi/master
More information about the U-Boot
mailing list