Skip to contentSkip to conversation

igc: Make function igc_write_rss_indir_tbl() static

PATCH In review Wei Yongjun 2 participants 3 messages Feb 16, 2019 – Feb 17, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Make function igc_write_rss_indir_tbl() static

Fixes the following sparse warning:

drivers/net/ethernet/intel/igc/igc_ethtool.c:646:6: warning:
symbol 'igc_write_rss_indir_tbl' was not declared. Should it be static?

Fixes 8c5ad0dae93c ("igc: Add ethtool support")
---
 drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_ethtool.c +1 -1
index eff37a6c0afa..544239422577 100644
@@ -643,7 +643,7 @@ static int igc_set_coalesce(struct net_device *netdev,
 	return 0;
 }
 
-void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
+static void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
 {
 	struct igc_hw *hw = &adapter->hw;
 	u32 reg = IGC_RETA(0);
#1 lore raw
Quoted 26 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/net/ethernet/intel/igc/igc_ethtool.c:646:6: warning:
symbol 'igc_write_rss_indir_tbl' was not declared. Should it be static?

Fixes 8c5ad0dae93c ("igc: Add ethtool support")
---
  drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_ethtool.c +1 -1
index eff37a6c0afa..544239422577 100644
@@ -643,7 +643,7 @@ static int igc_set_coalesce(struct net_device *netdev,
  	return 0;
  }
 
-void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
+static void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
  {
  	struct igc_hw *hw = &adapter->hw;
  	u32 reg = IGC_RETA(0);
Quoted 1 line

NACK

'igc_write_rss_indir_tbl' method declared in igc.h file. This method used in both igc_ethtool.c and igc_main.c and can't be a 'static'

#2 lore raw
Quoted 28 lines · Sasha
Quoted 27 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/net/ethernet/intel/igc/igc_ethtool.c:646:6: warning:
? symbol 'igc_write_rss_indir_tbl' was not declared. Should it be static?

Fixes 8c5ad0dae93c ("igc: Add ethtool support")

---
? drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 +- ? 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/net/ethernet/intel/igc/igc_ethtool.c +1 -1
index eff37a6c0afa..544239422577 100644
@@ -643,7 +643,7 @@ static int igc_set_coalesce(struct net_device 
 *netdev,
 ????? return 0;
 ? }
-void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
+static void igc_write_rss_indir_tbl(struct igc_adapter *adapter)
 ? {
 ????? struct igc_hw *hw = &adapter->hw;
 ????? u32 reg = IGC_RETA(0);
Quoted 4 lines
Quoted 1 line

NACK

'igc_write_rss_indir_tbl' method declared in igc.h file. This method used in both igc_ethtool.c and igc_main.c and can't be a 'static' __

please, refer to commit 429abdf0cd3c... (Add multiple receive queues control supporting)

_____________________________________________

Quoted 3 lines

Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan