diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 8ced165a79084..624f54750dbb3 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1261,7 +1261,7 @@ static void dsa_hw_port_list_free(struct list_head *hw_port_list)
 }
 
 /* Make the hardware datapath to/from @dev limited to a common MTU */
-void dsa_bridge_mtu_normalization(struct dsa_port *dp)
+static void dsa_bridge_mtu_normalization(struct dsa_port *dp)
 {
 	struct list_head hw_port_list;
 	struct dsa_switch_tree *dst;
