[U-Boot] [BUG] arch/arm/cpu/armv7/sunxi/psci.c does not build with GCC 9.2.1

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Oct 3 15:59:20 UTC 2019


Building orangepi_pc_defconfig with GCC 9.2.1 (Debian Bullseye) fails:

arch/arm/cpu/armv7/sunxi/psci.c: In function ‘sunxi_cpu_set_power’:
arch/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,
       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/cpu/armv7/sunxi/psci.c:163:48: 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,
       |                                                ^~~~~~~~~~~~~~~~~

Best regards

Heinrich Schucahrdt


More information about the U-Boot mailing list