realtek: Remove extern from function declarations
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 11:49:24 +0000 (12:49 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:49 +0000 (00:28 +0100)
commit3e539b64476001f39a36da1e5d473bd6d19d6724
tree01e48c30b22b54c8413d3038927d7e58e4b0d7ed
parent039c9802a1f8e52bccc4c3c9c752a4cb27641db7
realtek: Remove extern from function declarations

In contrast to variables, functions don't need extern declarations. It is
also preferred in the kernel not to use extern in front of function
declarations.

The extern+static parts in clk-rtl83xx.c were skipped because they are a
little bit unexpected ("extern *_dram_set_rate" are never used, "static
_sram_set_rate" are used but should from the C code perspective always be
NULL). This is left for an interested reader with the correct test HW and
some interests to dig in the code from commit 4850bd887c3a ("realtek: add
RTL83XX clock driver") for the *_dram_set_rate -> *_sram_set_rate
relocation and how these SRAM function pointers are set in this translation
unit.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c