]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: align declaration/static/extern function definitions for eth driver
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 26 May 2025 12:14:13 +0000 (08:14 -0400)
committerRobert Marko <robimarko@gmail.com>
Tue, 27 May 2025 08:26:18 +0000 (10:26 +0200)
commitf64864fa532cfc384f3f7a4c8e0a4549b4b12623
tree96f3825737a8e647641e07e4304ff96a8cd3493f
parentdb3037830b9cc809339681afc04f2d73d8390c5c
realtek: align declaration/static/extern function definitions for eth 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>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h