soc/intel/alderlake: Fix function pointer type
const void is not a proper return type for a function. It's the function pointer themselves that need to be const. This fixes building with clang. Change-Id: I99888ab9d9d80f1d6edb33b9f4a3f556f211a6e2 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62178 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
b53a55930e
commit
02967e6113
|
@ -799,7 +799,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 (*const fill_fsps_params[])(FSP_S_CONFIG *s_cfg,
|
||||
const struct soc_intel_alderlake_config *config) = {
|
||||
fill_fsps_lpss_params,
|
||||
fill_fsps_cpu_params,
|
||||
|
|
|
@ -330,7 +330,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_alderlake_config *config)
|
||||
{
|
||||
const void (*fill_fspm_params[])(FSP_M_CONFIG *m_cfg,
|
||||
void (*const fill_fspm_params[])(FSP_M_CONFIG *m_cfg,
|
||||
const struct soc_intel_alderlake_config *config) = {
|
||||
fill_fspm_igd_params,
|
||||
fill_fspm_mrc_params,
|
||||
|
|
Loading…
Reference in New Issue