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 <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54094 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
b8d35c1056
commit
40b8f01697
|
@ -15,7 +15,7 @@ static void hybrid_graphics_init(sysinfo_t *sysinfo)
|
|||
sysinfo->enable_peg = peg;
|
||||
}
|
||||
|
||||
void get_mb_spd_addrmap(u8 *spd_addrmap)
|
||||
void get_mb_spd_addrmap(u8 spd_addrmap[4])
|
||||
{
|
||||
spd_addrmap[0] = 0x50;
|
||||
spd_addrmap[2] = 0x51;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <southbridge/intel/common/gpio.h>
|
||||
#include <northbridge/intel/gm45/gm45.h>
|
||||
|
||||
void get_mb_spd_addrmap(u8 *spd_addrmap)
|
||||
void get_mb_spd_addrmap(u8 spd_addrmap[4])
|
||||
{
|
||||
spd_addrmap[0] = 0x50;
|
||||
spd_addrmap[2] = 0x51;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <northbridge/intel/gm45/gm45.h>
|
||||
|
||||
void get_mb_spd_addrmap(u8 *spd_addrmap)
|
||||
void get_mb_spd_addrmap(u8 spd_addrmap[4])
|
||||
{
|
||||
spd_addrmap[0] = 0x50;
|
||||
spd_addrmap[2] = 0x52;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_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();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_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();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_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();
|
||||
|
||||
|
|
|
@ -8,7 +8,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();
|
||||
|
||||
|
|
|
@ -475,7 +475,7 @@ int get_dram_freq_cnt(void)
|
|||
#if (FOR_DV_SIMULATION_USED==0)
|
||||
#if !__FLASH_TOOL_DA__ && !__ETT__
|
||||
|
||||
void get_dram_rank_size(u64 dram_rank_size[DRAMC_MAX_RK])
|
||||
void get_dram_rank_size(u64 dram_rank_size[])
|
||||
{
|
||||
#ifdef COMBO_MCP
|
||||
int index, rank_nr, i;
|
||||
|
|
Loading…
Reference in New Issue