realtek: align declaration/static/extern function definitions for phy driver
authorMarkus Stockhausen <[email protected]>
Mon, 26 May 2025 12:13:53 +0000 (08:13 -0400)
committerRobert Marko <[email protected]>
Tue, 27 May 2025 08:26:18 +0000 (10:26 +0200)
commitdb3037830b9cc809339681afc04f2d73d8390c5c
tree7f57654725a64cb3378c8d2f108b248ba2d341ab
parent31e2567164f66ce96dba6fae3739eb1a55bd1283
realtek: align declaration/static/extern function definitions for phy 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/net/phy/rtl83xx-phy.c
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.h