u-boot-brain/arch/x86/cpu/intel_common
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
..
acpi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
car2_uninit.S x86: Add support for newer CAR schemes 2019-12-15 11:44:18 +08:00
car2.S x86: Add support for newer CAR schemes 2019-12-15 11:44:18 +08:00
car.S x86: Update a stale comment about ifdtool 2019-05-08 13:02:10 +08:00
cpu_from_spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cpu.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fast_spi.c x86: spi: Add a way to access the SPI mapping via registers 2020-06-02 09:16:13 +08:00
generic_wifi.c x86: acpi: Add a common routine to write WiFi info 2020-09-25 11:27:15 +08:00
intel_opregion.c x86: Silence some logging statements 2020-11-06 09:51:32 +08:00
itss.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lpc.c x86: sizeof-array-div error in lpc_common_early_init 2021-03-09 09:42:12 +08:00
lpss.c x86: Add low-power subsystem (lpss) support 2019-12-15 11:44:25 +08:00
Makefile x86: apl: Reduce size for TPL 2021-01-05 12:24:41 -07:00
me_status.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
microcode.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mrc.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
p2sb.c x86: Move priv/plat structs for intel_common to headers 2021-01-05 12:24:41 -07:00
pch.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
report_platform.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00