]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: align declaration/static/extern function definitions for dsa driver 18925/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 26 May 2025 12:14:42 +0000 (08:14 -0400)
committerRobert Marko <robimarko@gmail.com>
Tue, 27 May 2025 08:26:18 +0000 (10:26 +0200)
commitcddf860c5347791a3aff9478270e6cfcc41c950a
treecc13436ecef9ab6fed6c073b23d0e4a706f06cd6
parentf64864fa532cfc384f3f7a4c8e0a4549b4b12623
realtek: align declaration/static/extern function definitions for dsa 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/dsa/rtl83xx/common.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/debugfs.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/qos.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl838x.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl931x.c