realtek: dsa: rtl93xx: Keep mgmt recv action functions local
authorSven Eckelmann <[email protected]>
Fri, 7 Nov 2025 14:08:17 +0000 (15:08 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 10 Nov 2025 23:05:20 +0000 (00:05 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20704
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c

index 43770d60ba6ce276ad1d69b8a13fe00190532013..5b98c85848fcfa79c05c559532209259f3dcb1e7 100644 (file)
@@ -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 */
index dddee9b7a90a94c6bba199f72af45618602b1363..acec3eb202dcc81901ddc005e9b13ca120e3f899 100644 (file)
@@ -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;
index 1950909056254224997728209de655fecb0b690e..3afa0c5a3a0900b86a702072c59c27bb679f5471 100644 (file)
@@ -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;