realtek: align declaration/static/extern function definitions for clock driver
authorMarkus Stockhausen <[email protected]>
Mon, 26 May 2025 12:13:29 +0000 (08:13 -0400)
committerRobert Marko <[email protected]>
Tue, 27 May 2025 08:26:18 +0000 (10:26 +0200)
commit31e2567164f66ce96dba6fae3739eb1a55bd1283
tree5eb984cf7244d75a8e5423b1d24fa160e907b565
parent7b65949bc4c911c4879dae567cd4efb61da05a2d
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.6/drivers/clk/realtek/clk-rtl83xx.c