[openwrt/openwrt] realtek: dsa: rtl93xx: Keep mgmt recv action functions local

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 10 15:06:31 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/14d3ea43abb3b40d95309c107d18feafa6bf7a9e

commit 14d3ea43abb3b40d95309c107d18feafa6bf7a9e
Author: Sven Eckelmann <se at simonwunderlich.de>
AuthorDate: Fri Nov 7 15:08:17 2025 +0100

    realtek: dsa: rtl93xx: Keep mgmt recv action functions local
    
    Th function to set the mangement frames receive actions is only used in the
    SoC specific files. They can therefore be kept local without any
    declaration in headers.
    
    Signed-off-by: Sven Eckelmann <se at simonwunderlich.de>
    Link: https://github.com/openwrt/openwrt/pull/20704
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h | 3 ---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c | 4 ++--
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c | 3 ++-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
index 43770d60ba..5b98c85848 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
@@ -205,7 +205,4 @@ void rtl930x_pie_rule_dump_raw(u32 r[]);
 
 void rtl931x_print_matrix(void);
 
-void rtldsa_930x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
-void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
-
 #endif /* _NET_DSA_RTL83XX_H */
diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
index dddee9b7a9..acec3eb202 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
@@ -738,8 +738,8 @@ static void rtl930x_write_mcast_pmask(int idx, u64 portmask)
 	rtl_table_release(q);
 }
 
-void rtldsa_930x_set_receive_management_action(int port, rma_ctrl_t type,
-					       action_type_t action)
+static void rtldsa_930x_set_receive_management_action(int port, rma_ctrl_t type,
+						      action_type_t action)
 {
 	u32 shift;
 	u32 value;
diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
index 1950909056..3afa0c5a3a 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
@@ -389,7 +389,8 @@ void rtl931x_print_matrix(void)
 	rtl_table_release(r);
 }
 
-void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action)
+static void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type,
+						      action_type_t action)
 {
 	u32 shift;
 	u32 value;




More information about the lede-commits mailing list