net: hns3: hns3_get_channels() can be static
authorkbuild test robot <fengguang.wu@intel.com>
Thu, 28 Dec 2017 01:09:59 +0000 (09:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Dec 2017 01:41:59 +0000 (20:41 -0500)
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>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

index 2ae4d39798c104a04c831c632a79b25e2c0797ba..379c01dddbf8d3763f525f107a622f36af0b7401 100644 (file)
@@ -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);