Commit bf512bc8 authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

drivers/net/wireless/ath9k: fix sparse warnings: make symbols static

Fix this sparse warnings:

  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?
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ed5ba89
...@@ -192,7 +192,7 @@ static bool ath9k_hw_fill_def_eeprom(struct ath_hal *ah) ...@@ -192,7 +192,7 @@ static bool ath9k_hw_fill_def_eeprom(struct ath_hal *ah)
#undef SIZE_EEPROM_DEF #undef SIZE_EEPROM_DEF
} }
bool (*ath9k_fill_eeprom[]) (struct ath_hal *) = { static bool (*ath9k_fill_eeprom[]) (struct ath_hal *) = {
ath9k_hw_fill_def_eeprom, ath9k_hw_fill_def_eeprom,
ath9k_hw_fill_4k_eeprom ath9k_hw_fill_4k_eeprom
}; };
...@@ -460,7 +460,7 @@ static int ath9k_hw_check_4k_eeprom(struct ath_hal *ah) ...@@ -460,7 +460,7 @@ static int ath9k_hw_check_4k_eeprom(struct ath_hal *ah)
#undef EEPROM_4K_SIZE #undef EEPROM_4K_SIZE
} }
int (*ath9k_check_eeprom[]) (struct ath_hal *) = { static int (*ath9k_check_eeprom[]) (struct ath_hal *) = {
ath9k_hw_check_def_eeprom, ath9k_hw_check_def_eeprom,
ath9k_hw_check_4k_eeprom ath9k_hw_check_4k_eeprom
}; };
...@@ -1216,7 +1216,7 @@ static bool ath9k_hw_set_4k_power_cal_table(struct ath_hal *ah, ...@@ -1216,7 +1216,7 @@ static bool ath9k_hw_set_4k_power_cal_table(struct ath_hal *ah,
return true; return true;
} }
bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah, static bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah,
struct ath9k_channel *chan, struct ath9k_channel *chan,
int16_t *ratesArray, int16_t *ratesArray,
u16 cfgCtl, u16 cfgCtl,
...@@ -1507,7 +1507,7 @@ bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah, ...@@ -1507,7 +1507,7 @@ bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah,
return true; return true;
} }
bool ath9k_hw_set_4k_power_per_rate_table(struct ath_hal *ah, static bool ath9k_hw_set_4k_power_per_rate_table(struct ath_hal *ah,
struct ath9k_channel *chan, struct ath9k_channel *chan,
int16_t *ratesArray, int16_t *ratesArray,
u16 cfgCtl, u16 cfgCtl,
...@@ -2004,7 +2004,7 @@ static int ath9k_hw_4k_set_txpower(struct ath_hal *ah, ...@@ -2004,7 +2004,7 @@ static int ath9k_hw_4k_set_txpower(struct ath_hal *ah,
return 0; return 0;
} }
int (*ath9k_set_txpower[]) (struct ath_hal *, static int (*ath9k_set_txpower[]) (struct ath_hal *,
struct ath9k_channel *, struct ath9k_channel *,
u16, u8, u8, u8) = { u16, u8, u8, u8) = {
ath9k_hw_def_set_txpower, ath9k_hw_def_set_txpower,
...@@ -2103,7 +2103,7 @@ static void ath9k_hw_set_4k_addac(struct ath_hal *ah, ...@@ -2103,7 +2103,7 @@ static void ath9k_hw_set_4k_addac(struct ath_hal *ah,
} }
} }
void (*ath9k_set_addac[]) (struct ath_hal *, struct ath9k_channel *) = { static void (*ath9k_set_addac[]) (struct ath_hal *, struct ath9k_channel *) = {
ath9k_hw_set_def_addac, ath9k_hw_set_def_addac,
ath9k_hw_set_4k_addac ath9k_hw_set_4k_addac
}; };
...@@ -2540,7 +2540,7 @@ static bool ath9k_hw_eeprom_set_4k_board_values(struct ath_hal *ah, ...@@ -2540,7 +2540,7 @@ static bool ath9k_hw_eeprom_set_4k_board_values(struct ath_hal *ah,
return true; return true;
} }
bool (*ath9k_eeprom_set_board_values[])(struct ath_hal *, static bool (*ath9k_eeprom_set_board_values[])(struct ath_hal *,
struct ath9k_channel *) = { struct ath9k_channel *) = {
ath9k_hw_eeprom_set_def_board_values, ath9k_hw_eeprom_set_def_board_values,
ath9k_hw_eeprom_set_4k_board_values ath9k_hw_eeprom_set_4k_board_values
...@@ -2603,7 +2603,8 @@ static int ath9k_hw_get_4k_eeprom_antenna_cfg(struct ath_hal *ah, ...@@ -2603,7 +2603,8 @@ static int ath9k_hw_get_4k_eeprom_antenna_cfg(struct ath_hal *ah,
return -EINVAL; return -EINVAL;
} }
int (*ath9k_get_eeprom_antenna_cfg[])(struct ath_hal *, struct ath9k_channel *, static int (*ath9k_get_eeprom_antenna_cfg[])(struct ath_hal *,
struct ath9k_channel *,
u8, u16 *) = { u8, u16 *) = {
ath9k_hw_get_def_eeprom_antenna_cfg, ath9k_hw_get_def_eeprom_antenna_cfg,
ath9k_hw_get_4k_eeprom_antenna_cfg ath9k_hw_get_4k_eeprom_antenna_cfg
...@@ -2619,13 +2620,13 @@ int ath9k_hw_get_eeprom_antenna_cfg(struct ath_hal *ah, ...@@ -2619,13 +2620,13 @@ int ath9k_hw_get_eeprom_antenna_cfg(struct ath_hal *ah,
index, config); index, config);
} }
u8 ath9k_hw_get_4k_num_ant_config(struct ath_hal *ah, static u8 ath9k_hw_get_4k_num_ant_config(struct ath_hal *ah,
enum ieee80211_band freq_band) enum ieee80211_band freq_band)
{ {
return 1; return 1;
} }
u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah, static u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah,
enum ieee80211_band freq_band) enum ieee80211_band freq_band)
{ {
struct ath_hal_5416 *ahp = AH5416(ah); struct ath_hal_5416 *ahp = AH5416(ah);
...@@ -2644,7 +2645,8 @@ u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah, ...@@ -2644,7 +2645,8 @@ u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah,
return num_ant_config; return num_ant_config;
} }
u8 (*ath9k_get_num_ant_config[])(struct ath_hal *, enum ieee80211_band) = { static u8 (*ath9k_get_num_ant_config[])(struct ath_hal *,
enum ieee80211_band) = {
ath9k_hw_get_def_num_ant_config, ath9k_hw_get_def_num_ant_config,
ath9k_hw_get_4k_num_ant_config ath9k_hw_get_4k_num_ant_config
}; };
...@@ -2787,7 +2789,7 @@ static u32 ath9k_hw_get_eeprom_def(struct ath_hal *ah, ...@@ -2787,7 +2789,7 @@ static u32 ath9k_hw_get_eeprom_def(struct ath_hal *ah,
} }
} }
u32 (*ath9k_get_eeprom[])(struct ath_hal *, enum eeprom_param) = { static u32 (*ath9k_get_eeprom[])(struct ath_hal *, enum eeprom_param) = {
ath9k_hw_get_eeprom_def, ath9k_hw_get_eeprom_def,
ath9k_hw_get_eeprom_4k ath9k_hw_get_eeprom_4k
}; };
......
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