From: Wei Yongjun Date: Tue, 23 Aug 2016 15:08:09 +0000 (+0000) Subject: igb: fix non static symbol warning X-Git-Tag: v4.1.12-105.0.20170622_2100~41 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=751e59677d32c15b59914745cbbfc036f135152b;p=users%2Fjedix%2Flinux-maple.git igb: fix non static symbol warning 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher (cherry picked from commit 7a823471ad42cba6c3b658494d8437ca5c166292) Orabug: 26325580 Signed-off-by: Kirtikar Kashyap Reviewed-by: Jack Vogel --- diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 30a12b802c77..41303d469116 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -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;