提交 7822b083 编写于 作者: W Wei Yongjun 提交者: David S. Miller

net: hns3: make local functions static

Fixes the following sparse warnings:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c:464:5: warning:
 symbol 'hns3_change_all_ring_bd_num' was not declared. Should it be static?
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c:477:5: warning:
 symbol 'hns3_set_ringparam' was not declared. Should it be static?
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b784ecba
...@@ -461,7 +461,8 @@ static int hns3_get_rxnfc(struct net_device *netdev, ...@@ -461,7 +461,8 @@ static int hns3_get_rxnfc(struct net_device *netdev,
return 0; return 0;
} }
int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, u32 new_desc_num) static int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv,
u32 new_desc_num)
{ {
struct hnae3_handle *h = priv->ae_handle; struct hnae3_handle *h = priv->ae_handle;
int i; int i;
...@@ -474,7 +475,8 @@ int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, u32 new_desc_num) ...@@ -474,7 +475,8 @@ int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, u32 new_desc_num)
return hns3_init_all_ring(priv); return hns3_init_all_ring(priv);
} }
int hns3_set_ringparam(struct net_device *ndev, struct ethtool_ringparam *param) static int hns3_set_ringparam(struct net_device *ndev,
struct ethtool_ringparam *param)
{ {
struct hns3_nic_priv *priv = netdev_priv(ndev); struct hns3_nic_priv *priv = netdev_priv(ndev);
struct hnae3_handle *h = priv->ae_handle; struct hnae3_handle *h = priv->ae_handle;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册