google/*/*/sdram_configs.c: Add function argument
A function declaration without a prototype is deprecated in all versions of C. Change-Id: Ie22231908233f2fba25d78f6c5f53940011e8158 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69748 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Felix Held
parent
8180427a16
commit
71e40782b8
@@ -11,7 +11,7 @@ static struct sdram_params sdram_configs[] = {
|
||||
#include "bct/sdram-unused.inc" /* ram_code = 0011 */
|
||||
};
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
const struct sdram_params *get_sdram_config(void)
|
||||
{
|
||||
uint32_t ramcode = sdram_get_ram_code();
|
||||
/*
|
||||
|
@@ -44,7 +44,7 @@ static enum dram_speeds get_sdram_target_mhz(void)
|
||||
return dram_928MHz;
|
||||
}
|
||||
|
||||
const struct rk3399_sdram_params *get_sdram_config()
|
||||
const struct rk3399_sdram_params *get_sdram_config(void)
|
||||
{
|
||||
char config_file[64];
|
||||
uint32_t ramcode;
|
||||
|
@@ -24,7 +24,7 @@ static struct sdram_params sdram_configs[] = {
|
||||
#include "bct/sdram-unused.inc" /* ram_code = 1111 */
|
||||
};
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
const struct sdram_params *get_sdram_config(void)
|
||||
{
|
||||
uint32_t ramcode = sdram_get_ram_code();
|
||||
/*
|
||||
|
@@ -24,7 +24,7 @@ static struct sdram_params sdram_configs[] = {
|
||||
#include "bct/sdram-unused.inc" /* ram_code = 1111 */
|
||||
};
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
const struct sdram_params *get_sdram_config(void)
|
||||
{
|
||||
uint32_t ramcode = sdram_get_ram_code();
|
||||
/*
|
||||
|
@@ -24,7 +24,7 @@ static struct sdram_params sdram_configs[] = {
|
||||
#include "bct/sdram-unused.inc" /* ram_code = 1111 */
|
||||
};
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
const struct sdram_params *get_sdram_config(void)
|
||||
{
|
||||
uint32_t ramcode = sdram_get_ram_code();
|
||||
/*
|
||||
|
@@ -22,7 +22,7 @@ static struct sdram_params sdram_configs[] = {
|
||||
#include "bct/sdram-unused.inc" /* ram_code = 1111 */
|
||||
};
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
const struct sdram_params *get_sdram_config(void)
|
||||
{
|
||||
uint32_t ramcode = sdram_get_ram_code();
|
||||
/*
|
||||
|
@@ -34,7 +34,7 @@ static struct rk3288_sdram_params sdram_configs[] = {
|
||||
|
||||
_Static_assert(ARRAY_SIZE(sdram_configs) == 24, "Must have 24 sdram_configs!");
|
||||
|
||||
const struct rk3288_sdram_params *get_sdram_config()
|
||||
const struct rk3288_sdram_params *get_sdram_config(void)
|
||||
{
|
||||
u32 ramcode = ram_code();
|
||||
|
||||
|
@@ -34,7 +34,7 @@ static struct rk3288_sdram_params sdram_configs[] = {
|
||||
|
||||
_Static_assert(ARRAY_SIZE(sdram_configs) == 24, "Must have 24 sdram_configs!");
|
||||
|
||||
const struct rk3288_sdram_params *get_sdram_config()
|
||||
const struct rk3288_sdram_params *get_sdram_config(void)
|
||||
{
|
||||
u32 ramcode = ram_code();
|
||||
|
||||
|
@@ -34,7 +34,7 @@ static struct rk3288_sdram_params sdram_configs[] = {
|
||||
|
||||
_Static_assert(ARRAY_SIZE(sdram_configs) == 24, "Must have 24 sdram_configs!");
|
||||
|
||||
const struct rk3288_sdram_params *get_sdram_config()
|
||||
const struct rk3288_sdram_params *get_sdram_config(void)
|
||||
{
|
||||
u32 ramcode = ram_code();
|
||||
|
||||
|
Reference in New Issue
Block a user