Skip to contentSkip to conversation

igb: fix non static symbol warning

PATCH In review Wei Yongjun 2 participants 2 messages Aug 23, 2016 – Aug 25, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igb: fix non static symbol warning

From: Wei Yongjun <[email protected]>

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?

---
 drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/igb/igb_ethtool.c +2 -2
index 0c33eca..737b664 100644
@@ -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;
Tested-by on v1 1/1
#1 lore raw
Quoted 12 lines

From: netdev-owner at vger.kernel.org [mailto:netdev- owner at vger.kernel.org] On Behalf Of Wei Yongjun
Sent: Tuesday, August 23, 2016 8:08 AM
To: Kirsher, Jeffrey T <[email protected]>
Cc: Wei Yongjun <[email protected]>; intel-wired- lan at lists.osuosl.org; netdev at vger.kernel.org
Subject: [PATCH -next] igb: fix non static symbol warning

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

Quoted 8 lines

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?

---
 drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)