aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-08-30 02:35:04 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-10-13 01:48:04 -0400
commitbed45a6ed51d00007f5eb6d75560218ddcecfe51 (patch)
treeb08a0bff2bcc3ca8c1f5a037ae5d6d9110f54998 /drivers/net/ethernet/intel/igb
parent8be10e9130a75c49ddcffdfca74b19b1c3169230 (diff)
igb: fix static function warnings reported by sparse
igb_update/validate_nvm_checksum_with_offset() should be static. Also removes unneeded prototypes for the above functions. Signed-off-by: Emil Tantilov <emil.s.tantilov@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/ethernet/intel/igb')
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_82575.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c
index c0857bdfb03..3771bd20f43 100644
--- a/drivers/net/ethernet/intel/igb/e1000_82575.c
+++ b/drivers/net/ethernet/intel/igb/e1000_82575.c
@@ -66,10 +66,6 @@ static s32 igb_set_pcie_completion_timeout(struct e1000_hw *hw);
66static s32 igb_reset_mdicnfg_82580(struct e1000_hw *hw); 66static s32 igb_reset_mdicnfg_82580(struct e1000_hw *hw);
67static s32 igb_validate_nvm_checksum_82580(struct e1000_hw *hw); 67static s32 igb_validate_nvm_checksum_82580(struct e1000_hw *hw);
68static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw); 68static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw);
69static s32 igb_update_nvm_checksum_with_offset(struct e1000_hw *hw,
70 u16 offset);
71static s32 igb_validate_nvm_checksum_with_offset(struct e1000_hw *hw,
72 u16 offset);
73static s32 igb_validate_nvm_checksum_i350(struct e1000_hw *hw); 69static s32 igb_validate_nvm_checksum_i350(struct e1000_hw *hw);
74static s32 igb_update_nvm_checksum_i350(struct e1000_hw *hw); 70static s32 igb_update_nvm_checksum_i350(struct e1000_hw *hw);
75static const u16 e1000_82580_rxpbs_table[] = 71static const u16 e1000_82580_rxpbs_table[] =
@@ -1820,7 +1816,8 @@ u16 igb_rxpbs_adjust_82580(u32 data)
1820 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM 1816 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM
1821 * and then verifies that the sum of the EEPROM is equal to 0xBABA. 1817 * and then verifies that the sum of the EEPROM is equal to 0xBABA.
1822 **/ 1818 **/
1823s32 igb_validate_nvm_checksum_with_offset(struct e1000_hw *hw, u16 offset) 1819static s32 igb_validate_nvm_checksum_with_offset(struct e1000_hw *hw,
1820 u16 offset)
1824{ 1821{
1825 s32 ret_val = 0; 1822 s32 ret_val = 0;
1826 u16 checksum = 0; 1823 u16 checksum = 0;
@@ -1855,7 +1852,7 @@ out:
1855 * up to the checksum. Then calculates the EEPROM checksum and writes the 1852 * up to the checksum. Then calculates the EEPROM checksum and writes the
1856 * value to the EEPROM. 1853 * value to the EEPROM.
1857 **/ 1854 **/
1858s32 igb_update_nvm_checksum_with_offset(struct e1000_hw *hw, u16 offset) 1855static s32 igb_update_nvm_checksum_with_offset(struct e1000_hw *hw, u16 offset)
1859{ 1856{
1860 s32 ret_val; 1857 s32 ret_val;
1861 u16 checksum = 0; 1858 u16 checksum = 0;