diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-11-17 12:47:09 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-24 15:17:58 +0000 |
commit | 71e40782b87ff6964600fa642058ff24f9b05676 (patch) | |
tree | b9a5eb678e2940abd9161713c1204be2887efd07 /src | |
parent | 8180427a16ce0ae3138a6d3204ddd15ebd8142b3 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/foster/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/gru/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/nyan/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/nyan_big/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/nyan_blaze/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/smaug/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/veyron/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/veyron_mickey/sdram_configs.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/veyron_rialto/sdram_configs.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/google/foster/sdram_configs.c b/src/mainboard/google/foster/sdram_configs.c index 25d64036fa..c42d787acc 100644 --- a/src/mainboard/google/foster/sdram_configs.c +++ b/src/mainboard/google/foster/sdram_configs.c @@ -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(); /* diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c index 2aceb9f084..aae3377020 100644 --- a/src/mainboard/google/gru/sdram_configs.c +++ b/src/mainboard/google/gru/sdram_configs.c @@ -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; diff --git a/src/mainboard/google/nyan/sdram_configs.c b/src/mainboard/google/nyan/sdram_configs.c index 241fbce5b3..a7ab4c716b 100644 --- a/src/mainboard/google/nyan/sdram_configs.c +++ b/src/mainboard/google/nyan/sdram_configs.c @@ -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(); /* diff --git a/src/mainboard/google/nyan_big/sdram_configs.c b/src/mainboard/google/nyan_big/sdram_configs.c index 15ed489070..ee3816aa21 100644 --- a/src/mainboard/google/nyan_big/sdram_configs.c +++ b/src/mainboard/google/nyan_big/sdram_configs.c @@ -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(); /* diff --git a/src/mainboard/google/nyan_blaze/sdram_configs.c b/src/mainboard/google/nyan_blaze/sdram_configs.c index 7972255173..02a374c8c9 100644 --- a/src/mainboard/google/nyan_blaze/sdram_configs.c +++ b/src/mainboard/google/nyan_blaze/sdram_configs.c @@ -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(); /* diff --git a/src/mainboard/google/smaug/sdram_configs.c b/src/mainboard/google/smaug/sdram_configs.c index 8d4521168f..92e00d6f41 100644 --- a/src/mainboard/google/smaug/sdram_configs.c +++ b/src/mainboard/google/smaug/sdram_configs.c @@ -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(); /* diff --git a/src/mainboard/google/veyron/sdram_configs.c b/src/mainboard/google/veyron/sdram_configs.c index b76ed09ab3..4b044924cb 100644 --- a/src/mainboard/google/veyron/sdram_configs.c +++ b/src/mainboard/google/veyron/sdram_configs.c @@ -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(); diff --git a/src/mainboard/google/veyron_mickey/sdram_configs.c b/src/mainboard/google/veyron_mickey/sdram_configs.c index b76ed09ab3..4b044924cb 100644 --- a/src/mainboard/google/veyron_mickey/sdram_configs.c +++ b/src/mainboard/google/veyron_mickey/sdram_configs.c @@ -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(); diff --git a/src/mainboard/google/veyron_rialto/sdram_configs.c b/src/mainboard/google/veyron_rialto/sdram_configs.c index 6a97c1731c..91b9439b0e 100644 --- a/src/mainboard/google/veyron_rialto/sdram_configs.c +++ b/src/mainboard/google/veyron_rialto/sdram_configs.c @@ -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(); |