Commit b476deab authored by Colin Ian King's avatar Colin Ian King Committed by Jeff Kirsher

igb: make a few local functions static

Clean up a few sparse warnings, these following
functions can be made static:

drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
  'igb_add_mac_filter' was not declared. Should it be static?
drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
  'igb_del_mac_filter' was not declared. Should it be static?
drivers/net/ethernet/intel/igb/igb_main.c: warning: symbol
  'igb_set_vf_mac_filter' was not declared. Should it be static?
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 50dffe7f
...@@ -6469,7 +6469,7 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter) ...@@ -6469,7 +6469,7 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter)
igb_rar_set_index(adapter, 0); igb_rar_set_index(adapter, 0);
} }
int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr, static int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
const u8 queue) const u8 queue)
{ {
struct e1000_hw *hw = &adapter->hw; struct e1000_hw *hw = &adapter->hw;
...@@ -6499,7 +6499,7 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr, ...@@ -6499,7 +6499,7 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
return -ENOSPC; return -ENOSPC;
} }
int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr, static int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
const u8 queue) const u8 queue)
{ {
struct e1000_hw *hw = &adapter->hw; struct e1000_hw *hw = &adapter->hw;
...@@ -6552,7 +6552,7 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr) ...@@ -6552,7 +6552,7 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr)
return 0; return 0;
} }
int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf, static int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
const u32 info, const u8 *addr) const u32 info, const u8 *addr)
{ {
struct pci_dev *pdev = adapter->pdev; struct pci_dev *pdev = adapter->pdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment