Skip to content

Commit 7822b08

Browse files
Wei Yongjundavem330
authored andcommitted
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: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b784ecb commit 7822b08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ static int hns3_get_rxnfc(struct net_device *netdev,
461461
return 0;
462462
}
463463

464-
int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, u32 new_desc_num)
464+
static int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv,
465+
u32 new_desc_num)
465466
{
466467
struct hnae3_handle *h = priv->ae_handle;
467468
int i;
@@ -474,7 +475,8 @@ int hns3_change_all_ring_bd_num(struct hns3_nic_priv *priv, u32 new_desc_num)
474475
return hns3_init_all_ring(priv);
475476
}
476477

477-
int hns3_set_ringparam(struct net_device *ndev, struct ethtool_ringparam *param)
478+
static int hns3_set_ringparam(struct net_device *ndev,
479+
struct ethtool_ringparam *param)
478480
{
479481
struct hns3_nic_priv *priv = netdev_priv(ndev);
480482
struct hnae3_handle *h = priv->ae_handle;

0 commit comments

Comments
 (0)