Browse Source

net: hns3: hns3_get_channels() can be static

Fixes: 482d2e9c1cc7 ("net: hns3: add support to query tqps number")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kbuild test robot 7 years ago
parent
commit
836df24a70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

+ 2 - 2
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

@@ -876,8 +876,8 @@ static int hns3_nway_reset(struct net_device *netdev)
 	return genphy_restart_aneg(phy);
 }
 
-void hns3_get_channels(struct net_device *netdev,
-		       struct ethtool_channels *ch)
+static void hns3_get_channels(struct net_device *netdev,
+			      struct ethtool_channels *ch)
 {
 	struct hnae3_handle *h = hns3_get_handle(netdev);