diff mbox series

net: dsa: make dsa_bridge_mtu_normalization() static

Message ID 20200402071505.9999-1-yanaijie@huawei.com
State New
Headers show
Series net: dsa: make dsa_bridge_mtu_normalization() static | expand

Commit Message

Jason Yan April 2, 2020, 7:15 a.m. UTC
Fix the following sparse warning:

net/dsa/slave.c:1341:6: warning: symbol 'dsa_bridge_mtu_normalization'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 net/dsa/slave.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 5390ff541658..e94eb1aac602 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1338,7 +1338,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;