[PATCH -next] igb: fix non static symbol warning

Subsystems: intel ethernet drivers, networking drivers, the rest

STALE3643d

2 messages, 2 authors, 2016-08-25 · open the first message on its own page

[PATCH -next] igb: fix non static symbol warning

From: Wei Yongjun <hidden>
Date: 2016-08-23 15:08:34

From: Wei Yongjun <redacted>

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 <redacted>
---
 drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index 0c33eca..737b664 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -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;

RE: [PATCH -next] igb: fix non static symbol warning

From: Brown, Aaron F <hidden>
Date: 2016-08-25 19:23:04

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

From: Wei Yongjun <redacted>

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 <redacted>
---
 drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Tested-by: Aaron Brown <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help