[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200402071505.9999-1-yanaijie@huawei.com>
Date: Thu, 2 Apr 2020 15:15:05 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <andrew@...n.ch>, <vivien.didelot@...il.com>,
<f.fainelli@...il.com>, <davem@...emloft.net>, <kuba@...nel.org>,
<netdev@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>
Subject: [PATCH] net: dsa: make dsa_bridge_mtu_normalization() static
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@...wei.com>
Signed-off-by: Jason Yan <yanaijie@...wei.com>
---
net/dsa/slave.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.17.2
Powered by blists - more mailing lists