realtek: align declaration/static/extern function definitions for clock driver

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2025-05-26 08:13:29 -04:00 committed by Robert Marko
parent 7b65949bc4
commit 31e2567164

View file

@ -504,7 +504,7 @@ static int rtcl_ccu_create(struct device_node *np)
return 0;
}
int rtcl_register_clkhw(int clk_idx)
static int rtcl_register_clkhw(int clk_idx)
{
int ret;
struct clk *clk;
@ -592,7 +592,7 @@ err_hw_unregister:
return ret;
}
int rtcl_init_sram(void)
static int rtcl_init_sram(void)
{
struct gen_pool *sram_pool;
phys_addr_t sram_pbase;
@ -665,7 +665,7 @@ err_put_device:
return -ENXIO;
}
void rtcl_ccu_log_early(void)
static void rtcl_ccu_log_early(void)
{
char meminfo[80], clkinfo[255], msg[255] = "rtl83xx-clk: initialized";
@ -680,7 +680,7 @@ void rtcl_ccu_log_early(void)
pr_info("%s\n", msg);
}
void rtcl_ccu_log_late(void)
static void rtcl_ccu_log_late(void)
{
struct rtcl_clk *rclk;
bool overclock = false;