igb: fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Aug 2016 15:08:09 +0000 (15:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 28 Sep 2016 02:00:52 +0000 (19:00 -0700)
Fixes the following sparse warning:

drivers/net/ethernet/intel/igb/igb_ethtool.c:2707:5: warning:
 symbol 'igb_rxnfc_write_vlan_prio_filter' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c

index 0c33eca7c83286e245609f8704822ce71c026512..737b664d004cbb372222f6f63acc5c9f38ad4c95 100644 (file)
@@ -2704,8 +2704,8 @@ static int igb_rxnfc_write_etype_filter(struct igb_adapter *adapter,
        return 0;
 }
 
-int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter,
-                                    struct igb_nfc_filter *input)
+static int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter,
+                                           struct igb_nfc_filter *input)
 {
        struct e1000_hw *hw = &adapter->hw;
        u8 vlan_priority;