diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-07-29 10:45:52 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-07 14:20:54 +0000 |
commit | 4081d6c05356cbae3187793641707ace87b9d8e9 (patch) | |
tree | cc542d663c7f26a8ca7e7a76f5e3e6205266d462 /src/soc/intel/meteorlake | |
parent | 16ab8d591dc636771c85fd9e24377ca437e44e55 (diff) |
soc/intel/meteorlake: Fix incompatible function pointers
const void is a meaningless return type and clang complains about
incompatible function pointer signatures.
Change-Id: Ia00706b9cd718e590819621986dbd20555f6c226
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66263
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc/intel/meteorlake')
-rw-r--r-- | src/soc/intel/meteorlake/fsp_params.c | 2 | ||||
-rw-r--r-- | src/soc/intel/meteorlake/romstage/fsp_params.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/meteorlake/fsp_params.c b/src/soc/intel/meteorlake/fsp_params.c index c727fb31aa..4fd8f79533 100644 --- a/src/soc/intel/meteorlake/fsp_params.c +++ b/src/soc/intel/meteorlake/fsp_params.c @@ -420,7 +420,7 @@ static void soc_silicon_init_params(FSP_S_CONFIG *s_cfg, /* Override settings per board if required. */ mainboard_update_soc_chip_config(config); - const void (*fill_fsps_params[])(FSP_S_CONFIG *s_cfg, + void (*fill_fsps_params[])(FSP_S_CONFIG *s_cfg, const struct soc_intel_meteorlake_config *config) = { fill_fsps_lpss_params, fill_fsps_cpu_params, diff --git a/src/soc/intel/meteorlake/romstage/fsp_params.c b/src/soc/intel/meteorlake/romstage/fsp_params.c index 0b7e79e6f1..6e56eae609 100644 --- a/src/soc/intel/meteorlake/romstage/fsp_params.c +++ b/src/soc/intel/meteorlake/romstage/fsp_params.c @@ -284,7 +284,7 @@ static void fill_fspm_trace_params(FSP_M_CONFIG *m_cfg, static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const struct soc_intel_meteorlake_config *config) { - const void (*const fill_fspm_params[])(FSP_M_CONFIG *m_cfg, + void (*fill_fspm_params[])(FSP_M_CONFIG *m_cfg, const struct soc_intel_meteorlake_config *config) = { fill_fspm_igd_params, fill_fspm_mrc_params, |