Skip to content

Commit b476dea

Browse files
Colin Ian KingJeff Kirsher
authored andcommitted
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: Colin Ian King <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 50dffe7 commit b476dea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6469,8 +6469,8 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter)
64696469
igb_rar_set_index(adapter, 0);
64706470
}
64716471

6472-
int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6473-
const u8 queue)
6472+
static int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6473+
const u8 queue)
64746474
{
64756475
struct e1000_hw *hw = &adapter->hw;
64766476
int rar_entries = hw->mac.rar_entry_count -
@@ -6499,8 +6499,8 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
64996499
return -ENOSPC;
65006500
}
65016501

6502-
int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6503-
const u8 queue)
6502+
static int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6503+
const u8 queue)
65046504
{
65056505
struct e1000_hw *hw = &adapter->hw;
65066506
int rar_entries = hw->mac.rar_entry_count -
@@ -6552,8 +6552,8 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr)
65526552
return 0;
65536553
}
65546554

6555-
int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
6556-
const u32 info, const u8 *addr)
6555+
static int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
6556+
const u32 info, const u8 *addr)
65576557
{
65586558
struct pci_dev *pdev = adapter->pdev;
65596559
struct vf_data_storage *vf_data = &adapter->vf_data[vf];

0 commit comments

Comments
 (0)