u-boot/arch/x86/cpu
Heinrich Schuchardt 97401d0dbc x86: sizeof-array-div error in lpc_common_early_init
Building qemu-x86_64_defconfig with GCC 11.0 fails with:

arch/x86/cpu/intel_common/lpc.c:
In function ‘lpc_common_early_init’:
arch/x86/cpu/intel_common/lpc.c:56:40:
error: expression does not compute the number of elements in this array;
element type is ‘struct reg_info’, not ‘u32’ {aka ‘unsigned int’}
[-Werror=sizeof-array-div]
   56 |                         sizeof(values) / sizeof(u32));
      |                                        ^
arch/x86/cpu/intel_common/lpc.c:56:40: note: add parentheses around the
second ‘sizeof’ to silence this warning
arch/x86/cpu/intel_common/lpc.c:50:11: note: array ‘values’ declared here
   50 |         } values[4], *ptr;
      |           ^~~~~~

Add parentheses to silence warning.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2021-03-09 09:42:12 +08:00
..
apollolake common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
baytrail common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
braswell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadwell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
coreboot common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
i386 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
intel_common x86: sizeof-array-div error in lpc_common_early_init 2021-03-09 09:42:12 +08:00
ivybridge common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qemu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
quark common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
queensbay common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
slimbootloader common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tangier Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
x86_64 x86: cpu: Report address width from cpu_get_info() 2020-09-25 11:27:21 +08:00
acpi_gpe.c x86: acpi_gpe: Update driver name to match devicetree 2021-02-01 15:11:41 +08:00
call32.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
config.mk Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
cpu.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cpu_x86.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ioapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
irq.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile x86: Don't enable SMP in SPL 2020-07-20 09:46:46 +08:00
mp_init.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mtrr.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
qfw_cpu.c x86: qemu: Fix broken multi-core boot 2021-02-03 22:54:56 +08:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start16.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start64.S x86: start64: Fix copyright message 2019-05-08 13:02:10 +08:00
start_from_spl.S x86: Use the existing stack when chain-loading 2020-04-30 17:48:17 +08:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
turbo.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
u-boot-64.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
u-boot-spl.lds x86: spl: Make moving BSS conditional 2021-02-01 15:33:24 +08:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00