From 40b8f01697d6f26f86de7fbda1d0a160dcd4d5df Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 12 May 2021 14:52:12 +0200 Subject: src: Match array format in function declarations and definitions gcc 11.1 complains when we're passing a type* into a function that was declared to get a type[], even if the ABI has identical parameter passing for both. To prepare for newer compilers, adapt to this added constraint. Change-Id: I5a1b3824a85a178431177620c4c0d5fddc993b4f Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/54094 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Felix Singer Reviewed-by: Angel Pons --- src/soc/intel/alderlake/espi.c | 2 +- src/soc/intel/cannonlake/lpc.c | 2 +- src/soc/intel/elkhartlake/espi.c | 2 +- src/soc/intel/icelake/espi.c | 2 +- src/soc/intel/jasperlake/espi.c | 2 +- src/soc/intel/skylake/lpc.c | 2 +- src/soc/intel/tigerlake/espi.c | 2 +- src/soc/intel/xeon_sp/lpc.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/alderlake/espi.c b/src/soc/intel/alderlake/espi.c index feec465a92..dd0edcde2c 100644 --- a/src/soc/intel/alderlake/espi.c +++ b/src/soc/intel/alderlake/espi.c @@ -20,7 +20,7 @@ #include #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/cannonlake/lpc.c b/src/soc/intel/cannonlake/lpc.c index 20704e5bc6..0e63e0dc97 100644 --- a/src/soc/intel/cannonlake/lpc.c +++ b/src/soc/intel/cannonlake/lpc.c @@ -17,7 +17,7 @@ #include "chip.h" -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/elkhartlake/espi.c b/src/soc/intel/elkhartlake/espi.c index 1737a474ac..46646d8485 100644 --- a/src/soc/intel/elkhartlake/espi.c +++ b/src/soc/intel/elkhartlake/espi.c @@ -16,7 +16,7 @@ #include #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/icelake/espi.c b/src/soc/intel/icelake/espi.c index 489fe34223..d634cf8943 100644 --- a/src/soc/intel/icelake/espi.c +++ b/src/soc/intel/icelake/espi.c @@ -16,7 +16,7 @@ #include #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/jasperlake/espi.c b/src/soc/intel/jasperlake/espi.c index c3b50de8f0..1d1f94e328 100644 --- a/src/soc/intel/jasperlake/espi.c +++ b/src/soc/intel/jasperlake/espi.c @@ -16,7 +16,7 @@ #include #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/skylake/lpc.c b/src/soc/intel/skylake/lpc.c index 5abae765c9..5d38bb8683 100644 --- a/src/soc/intel/skylake/lpc.c +++ b/src/soc/intel/skylake/lpc.c @@ -14,7 +14,7 @@ #include "chip.h" -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/tigerlake/espi.c b/src/soc/intel/tigerlake/espi.c index 8386cd9df1..427867622b 100644 --- a/src/soc/intel/tigerlake/espi.c +++ b/src/soc/intel/tigerlake/espi.c @@ -22,7 +22,7 @@ #include #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); diff --git a/src/soc/intel/xeon_sp/lpc.c b/src/soc/intel/xeon_sp/lpc.c index f0cb6db63d..dad0a4914d 100644 --- a/src/soc/intel/xeon_sp/lpc.c +++ b/src/soc/intel/xeon_sp/lpc.c @@ -8,7 +8,7 @@ #include -void soc_get_gen_io_dec_range(uint32_t *gen_io_dec) +void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { const config_t *config = config_of_soc(); -- cgit v1.2.3