Commit c8268921 authored by Akeem G. Abodunrin's avatar Akeem G. Abodunrin Committed by Jeff Kirsher

igb: Fix sparse warnings on function pointers

This patch fixes sparse warnings on function pointers that are not
defined as static.
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 4e227667
...@@ -227,7 +227,7 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw) ...@@ -227,7 +227,7 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw)
* igb_init_nvm_params_82575 - Init NVM func ptrs. * igb_init_nvm_params_82575 - Init NVM func ptrs.
* @hw: pointer to the HW structure * @hw: pointer to the HW structure
**/ **/
s32 igb_init_nvm_params_82575(struct e1000_hw *hw) static s32 igb_init_nvm_params_82575(struct e1000_hw *hw)
{ {
struct e1000_nvm_info *nvm = &hw->nvm; struct e1000_nvm_info *nvm = &hw->nvm;
u32 eecd = rd32(E1000_EECD); u32 eecd = rd32(E1000_EECD);
...@@ -867,7 +867,7 @@ static s32 igb_set_d0_lplu_state_82580(struct e1000_hw *hw, bool active) ...@@ -867,7 +867,7 @@ static s32 igb_set_d0_lplu_state_82580(struct e1000_hw *hw, bool active)
* During driver activity, SmartSpeed should be enabled so performance is * During driver activity, SmartSpeed should be enabled so performance is
* maintained. * maintained.
**/ **/
s32 igb_set_d3_lplu_state_82580(struct e1000_hw *hw, bool active) static s32 igb_set_d3_lplu_state_82580(struct e1000_hw *hw, bool active)
{ {
struct e1000_phy_info *phy = &hw->phy; struct e1000_phy_info *phy = &hw->phy;
s32 ret_val = 0; s32 ret_val = 0;
......
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