diff options
author | Akeem G. Abodunrin <akeem.g.abodunrin@intel.com> | 2013-02-16 02:09:06 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-04-18 19:40:21 -0400 |
commit | c8268921d443bd5c0c9b8fd7193d00533638ec03 (patch) | |
tree | 3ef3bca99906427f57705a6689070f88d7f48ecb /drivers/net | |
parent | 4e22766758cb8c971c971f3d335b974aaeb235fa (diff) |
igb: Fix sparse warnings on function pointers
This patch fixes sparse warnings on function pointers that are not
defined as static.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_82575.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index 856364a0bbb2..3867ba192486 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.c +++ b/drivers/net/ethernet/intel/igb/e1000_82575.c | |||
@@ -227,7 +227,7 @@ out: | |||
227 | * igb_init_nvm_params_82575 - Init NVM func ptrs. | 227 | * igb_init_nvm_params_82575 - Init NVM func ptrs. |
228 | * @hw: pointer to the HW structure | 228 | * @hw: pointer to the HW structure |
229 | **/ | 229 | **/ |
230 | s32 igb_init_nvm_params_82575(struct e1000_hw *hw) | 230 | static s32 igb_init_nvm_params_82575(struct e1000_hw *hw) |
231 | { | 231 | { |
232 | struct e1000_nvm_info *nvm = &hw->nvm; | 232 | struct e1000_nvm_info *nvm = &hw->nvm; |
233 | u32 eecd = rd32(E1000_EECD); | 233 | u32 eecd = rd32(E1000_EECD); |
@@ -867,7 +867,7 @@ static s32 igb_set_d0_lplu_state_82580(struct e1000_hw *hw, bool active) | |||
867 | * During driver activity, SmartSpeed should be enabled so performance is | 867 | * During driver activity, SmartSpeed should be enabled so performance is |
868 | * maintained. | 868 | * maintained. |
869 | **/ | 869 | **/ |
870 | s32 igb_set_d3_lplu_state_82580(struct e1000_hw *hw, bool active) | 870 | static s32 igb_set_d3_lplu_state_82580(struct e1000_hw *hw, bool active) |
871 | { | 871 | { |
872 | struct e1000_phy_info *phy = &hw->phy; | 872 | struct e1000_phy_info *phy = &hw->phy; |
873 | s32 ret_val = 0; | 873 | s32 ret_val = 0; |