Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1632293 > unrolled thread
| Started by | Colin King <colin.king@canonical.com> |
|---|---|
| First post | 2017-04-27 20:00 +0200 |
| Last post | 2017-05-03 03:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] igb: make a few local functions static Colin King <colin.king@canonical.com> - 2017-04-27 20:00 +0200
RE: [Intel-wired-lan] [PATCH] igb: make a few local functions static "Brown, Aaron F" <aaron.f.brown@intel.com> - 2017-05-03 03:40 +0200
| From | Colin King <colin.king@canonical.com> |
|---|---|
| Date | 2017-04-27 20:00 +0200 |
| Subject | [PATCH] igb: make a few local functions static |
| Message-ID | <tAVRU-3TB-5@gated-at.bofh.it> |
From: Colin Ian King <colin.king@canonical.com>
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 <colin.king@canonical.com>
---
drivers/net/ethernet/intel/igb/igb_main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 1cf74aa4ebd9..b0021819b9d0 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -6457,8 +6457,8 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter)
igb_rar_set_index(adapter, 0);
}
-int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
- const u8 queue)
+static int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
+ const u8 queue)
{
struct e1000_hw *hw = &adapter->hw;
int rar_entries = hw->mac.rar_entry_count -
@@ -6487,8 +6487,8 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
return -ENOSPC;
}
-int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
- const u8 queue)
+static int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
+ const u8 queue)
{
struct e1000_hw *hw = &adapter->hw;
int rar_entries = hw->mac.rar_entry_count -
@@ -6540,8 +6540,8 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr)
return 0;
}
-int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
- const u32 info, const u8 *addr)
+static int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
+ const u32 info, const u8 *addr)
{
struct pci_dev *pdev = adapter->pdev;
struct vf_data_storage *vf_data = &adapter->vf_data[vf];
--
2.11.0
[toc] | [next] | [standalone]
| From | "Brown, Aaron F" <aaron.f.brown@intel.com> |
|---|---|
| Date | 2017-05-03 03:40 +0200 |
| Subject | RE: [Intel-wired-lan] [PATCH] igb: make a few local functions static |
| Message-ID | <tCRqN-64d-1@gated-at.bofh.it> |
| In reply to | #1632293 |
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On > Behalf Of Colin King > Sent: Thursday, April 27, 2017 10:59 AM > To: Kirsher, Jeffrey T <jeffrey.t.kirsher@intel.com>; intel-wired- > lan@lists.osuosl.org; netdev@vger.kernel.org > Cc: kernel-janitors@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH] igb: make a few local functions static > > From: Colin Ian King <colin.king@canonical.com> > > 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 <colin.king@canonical.com> > --- > drivers/net/ethernet/intel/igb/igb_main.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) Tested-by: Aaron Brown <aaron.f.brown@intel.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web