diff mbox series

net: dsa: make dsa_bridge_mtu_normalization() static

Message ID 20200402071505.9999-1-yanaijie@huawei.com
State Not Applicable
Delegated to: David Miller
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(-)

Comments

Vivien Didelot April 2, 2020, 3:44 p.m. UTC | #1
On Thu, 2 Apr 2020 15:15:05 +0800, Jason Yan <yanaijie@huawei.com> wrote:
> 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>

Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
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;