diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-12-23 18:58:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:35 -0500 |
commit | a085ff718c8c9f14c44feb337774fadfd982e1a5 (patch) | |
tree | a20e5fd8346fa344d27941787c3d6b6fb36dcb33 /drivers/net/wireless/ath9k/hw.c | |
parent | c0d7c7af0a8298a43449d54762e655ab57739539 (diff) |
ath9k: fix sparse warnings
Fix sparse warnings:
drivers/net/wireless/ath9k/hw.c:1850:17: warning: symbol 'tmp' shadows an earlier one
drivers/net/wireless/ath9k/hw.c:1713:6: originally declared here
drivers/net/wireless/ath9k/hw.c:2051:17: warning: symbol 'tmp' shadows an earlier one
drivers/net/wireless/ath9k/hw.c:1961:6: originally declared here
drivers/net/wireless/ath9k/eeprom.c:195:6: warning: symbol 'ath9k_fill_eeprom' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:463:5: warning: symbol 'ath9k_check_eeprom' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:1219:6: warning: symbol 'ath9k_hw_set_def_power_per_rate_table' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:1510:6: warning: symbol 'ath9k_hw_set_4k_power_per_rate_table' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2007:5: warning: symbol 'ath9k_set_txpower' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2106:6: warning: symbol 'ath9k_set_addac' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2543:6: warning: symbol 'ath9k_eeprom_set_board_values' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2606:5: warning: symbol 'ath9k_get_eeprom_antenna_cfg' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2622:4: warning: symbol 'ath9k_hw_get_4k_num_ant_config' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2628:4: warning: symbol 'ath9k_hw_get_def_num_ant_config' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2647:4: warning: symbol 'ath9k_get_num_ant_config' was not declared. Should it be static?
drivers/net/wireless/ath9k/eeprom.c:2790:5: warning: symbol 'ath9k_get_eeprom' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:962:30: warning: symbol 'iq_cal_multi_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:969:30: warning: symbol 'iq_cal_single_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:976:30: warning: symbol 'adc_gain_cal_multi_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:983:30: warning: symbol 'adc_gain_cal_single_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:990:30: warning: symbol 'adc_dc_cal_multi_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:997:30: warning: symbol 'adc_dc_cal_single_sample' was not declared. Should it be static?
drivers/net/wireless/ath9k/calib.c:1004:30: warning: symbol 'adc_init_dc_cal' was not declared. Should it be static?
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 1d44aa8e5110..a7f44e5b2e82 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -27,14 +27,6 @@ | |||
27 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 | 27 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 |
28 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 | 28 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 |
29 | 29 | ||
30 | extern struct hal_percal_data iq_cal_multi_sample; | ||
31 | extern struct hal_percal_data iq_cal_single_sample; | ||
32 | extern struct hal_percal_data adc_gain_cal_multi_sample; | ||
33 | extern struct hal_percal_data adc_gain_cal_single_sample; | ||
34 | extern struct hal_percal_data adc_dc_cal_multi_sample; | ||
35 | extern struct hal_percal_data adc_dc_cal_single_sample; | ||
36 | extern struct hal_percal_data adc_init_dc_cal; | ||
37 | |||
38 | static bool ath9k_hw_set_reset_reg(struct ath_hal *ah, u32 type); | 30 | static bool ath9k_hw_set_reset_reg(struct ath_hal *ah, u32 type); |
39 | static void ath9k_hw_set_regs(struct ath_hal *ah, struct ath9k_channel *chan, | 31 | static void ath9k_hw_set_regs(struct ath_hal *ah, struct ath9k_channel *chan, |
40 | enum ath9k_ht_macmode macmode); | 32 | enum ath9k_ht_macmode macmode); |
@@ -1886,9 +1878,9 @@ static void ath9k_hw_9280_spur_mitigate(struct ath_hal *ah, struct ath9k_channel | |||
1886 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { | 1878 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { |
1887 | 1879 | ||
1888 | /* workaround for gcc bug #37014 */ | 1880 | /* workaround for gcc bug #37014 */ |
1889 | volatile int tmp = abs(cur_vit_mask - bin); | 1881 | volatile int tmp_v = abs(cur_vit_mask - bin); |
1890 | 1882 | ||
1891 | if (tmp < 75) | 1883 | if (tmp_v < 75) |
1892 | mask_amt = 1; | 1884 | mask_amt = 1; |
1893 | else | 1885 | else |
1894 | mask_amt = 0; | 1886 | mask_amt = 0; |
@@ -2087,9 +2079,9 @@ static void ath9k_hw_spur_mitigate(struct ath_hal *ah, struct ath9k_channel *cha | |||
2087 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { | 2079 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { |
2088 | 2080 | ||
2089 | /* workaround for gcc bug #37014 */ | 2081 | /* workaround for gcc bug #37014 */ |
2090 | volatile int tmp = abs(cur_vit_mask - bin); | 2082 | volatile int tmp_v = abs(cur_vit_mask - bin); |
2091 | 2083 | ||
2092 | if (tmp < 75) | 2084 | if (tmp_v < 75) |
2093 | mask_amt = 1; | 2085 | mask_amt = 1; |
2094 | else | 2086 | else |
2095 | mask_amt = 0; | 2087 | mask_amt = 0; |