]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: aquantia: Make local functions static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 28 Oct 2017 05:03:38 +0000 (05:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 08:53:00 +0000 (17:53 +0900)
Fixes the following sparse warnings:

drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c:224:5: warning:
 symbol 'aq_ethtool_get_coalesce' was not declared. Should it be static?
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c:245:5: warning:
 symbol 'aq_ethtool_set_coalesce' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c

index d5e99b46887061a216652ca150897bba49f16223..70efb7467bf3a1c6f298e9d5697b38307e91dab7 100644 (file)
@@ -221,8 +221,8 @@ static int aq_ethtool_get_rxnfc(struct net_device *ndev,
        return err;
 }
 
-int aq_ethtool_get_coalesce(struct net_device *ndev,
-                           struct ethtool_coalesce *coal)
+static int aq_ethtool_get_coalesce(struct net_device *ndev,
+                                  struct ethtool_coalesce *coal)
 {
        struct aq_nic_s *aq_nic = netdev_priv(ndev);
        struct aq_nic_cfg_s *cfg = aq_nic_get_cfg(aq_nic);
@@ -242,8 +242,8 @@ int aq_ethtool_get_coalesce(struct net_device *ndev,
        return 0;
 }
 
-int aq_ethtool_set_coalesce(struct net_device *ndev,
-                           struct ethtool_coalesce *coal)
+static int aq_ethtool_set_coalesce(struct net_device *ndev,
+                                  struct ethtool_coalesce *coal)
 {
        struct aq_nic_s *aq_nic = netdev_priv(ndev);
        struct aq_nic_cfg_s *cfg = aq_nic_get_cfg(aq_nic);