igb: fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Aug 2016 15:08:09 +0000 (15:08 +0000)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:31 +0000 (14:28 -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>
(cherry picked from commit 7a823471ad42cba6c3b658494d8437ca5c166292)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c

index 30a12b802c77a863b035dd29784a4ae4e84ed7b8..41303d46911686eb9ccba36cd9c462e2ad482442 100644 (file)
@@ -2708,8 +2708,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;