提交 6890ba72 编写于 作者: J Joe Perches

iwlegacy: Remove extern from function prototypes

There are a mix of function prototypes with and without extern
in the kernel sources.  Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler.  Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: NJoe Perches <joe@perches.com>
上级 89eb744f
...@@ -189,15 +189,14 @@ struct il3945_ibss_seq { ...@@ -189,15 +189,14 @@ struct il3945_ibss_seq {
* for use by iwl-*.c * for use by iwl-*.c
* *
*****************************************************************************/ *****************************************************************************/
extern int il3945_calc_db_from_ratio(int sig_ratio); int il3945_calc_db_from_ratio(int sig_ratio);
extern void il3945_rx_replenish(void *data); void il3945_rx_replenish(void *data);
extern void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
extern unsigned int il3945_fill_beacon_frame(struct il_priv *il, unsigned int il3945_fill_beacon_frame(struct il_priv *il,
struct ieee80211_hdr *hdr, struct ieee80211_hdr *hdr, int left);
int left); int il3945_dump_nic_event_log(struct il_priv *il, bool full_log, char **buf,
extern int il3945_dump_nic_event_log(struct il_priv *il, bool full_log, bool display);
char **buf, bool display); void il3945_dump_nic_error_log(struct il_priv *il);
extern void il3945_dump_nic_error_log(struct il_priv *il);
/****************************************************************************** /******************************************************************************
* *
...@@ -215,39 +214,36 @@ extern void il3945_dump_nic_error_log(struct il_priv *il); ...@@ -215,39 +214,36 @@ extern void il3945_dump_nic_error_log(struct il_priv *il);
* il3945_mac_ <-- mac80211 callback * il3945_mac_ <-- mac80211 callback
* *
****************************************************************************/ ****************************************************************************/
extern void il3945_hw_handler_setup(struct il_priv *il); void il3945_hw_handler_setup(struct il_priv *il);
extern void il3945_hw_setup_deferred_work(struct il_priv *il); void il3945_hw_setup_deferred_work(struct il_priv *il);
extern void il3945_hw_cancel_deferred_work(struct il_priv *il); void il3945_hw_cancel_deferred_work(struct il_priv *il);
extern int il3945_hw_rxq_stop(struct il_priv *il); int il3945_hw_rxq_stop(struct il_priv *il);
extern int il3945_hw_set_hw_params(struct il_priv *il); int il3945_hw_set_hw_params(struct il_priv *il);
extern int il3945_hw_nic_init(struct il_priv *il); int il3945_hw_nic_init(struct il_priv *il);
extern int il3945_hw_nic_stop_master(struct il_priv *il); int il3945_hw_nic_stop_master(struct il_priv *il);
extern void il3945_hw_txq_ctx_free(struct il_priv *il); void il3945_hw_txq_ctx_free(struct il_priv *il);
extern void il3945_hw_txq_ctx_stop(struct il_priv *il); void il3945_hw_txq_ctx_stop(struct il_priv *il);
extern int il3945_hw_nic_reset(struct il_priv *il); int il3945_hw_nic_reset(struct il_priv *il);
extern int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *il, int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
struct il_tx_queue *txq, dma_addr_t addr, u16 len, u8 reset, u8 pad);
dma_addr_t addr, u16 len, u8 reset, void il3945_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq);
u8 pad); int il3945_hw_get_temperature(struct il_priv *il);
extern void il3945_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq); int il3945_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq);
extern int il3945_hw_get_temperature(struct il_priv *il); unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il,
extern int il3945_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq); struct il3945_frame *frame, u8 rate);
extern unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il,
struct il3945_frame *frame,
u8 rate);
void il3945_hw_build_tx_cmd_rate(struct il_priv *il, struct il_device_cmd *cmd, void il3945_hw_build_tx_cmd_rate(struct il_priv *il, struct il_device_cmd *cmd,
struct ieee80211_tx_info *info, struct ieee80211_tx_info *info,
struct ieee80211_hdr *hdr, int sta_id); struct ieee80211_hdr *hdr, int sta_id);
extern int il3945_hw_reg_send_txpower(struct il_priv *il); int il3945_hw_reg_send_txpower(struct il_priv *il);
extern int il3945_hw_reg_set_txpower(struct il_priv *il, s8 power); int il3945_hw_reg_set_txpower(struct il_priv *il, s8 power);
extern void il3945_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb); void il3945_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb);
void il3945_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb); void il3945_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb);
extern void il3945_disable_events(struct il_priv *il); void il3945_disable_events(struct il_priv *il);
extern int il4965_get_temperature(const struct il_priv *il); int il4965_get_temperature(const struct il_priv *il);
extern void il3945_post_associate(struct il_priv *il); void il3945_post_associate(struct il_priv *il);
extern void il3945_config_ap(struct il_priv *il); void il3945_config_ap(struct il_priv *il);
extern int il3945_commit_rxon(struct il_priv *il); int il3945_commit_rxon(struct il_priv *il);
/** /**
* il3945_hw_find_station - Find station id for a given BSSID * il3945_hw_find_station - Find station id for a given BSSID
...@@ -257,14 +253,14 @@ extern int il3945_commit_rxon(struct il_priv *il); ...@@ -257,14 +253,14 @@ extern int il3945_commit_rxon(struct il_priv *il);
* not yet been merged into a single common layer for managing the * not yet been merged into a single common layer for managing the
* station tables. * station tables.
*/ */
extern u8 il3945_hw_find_station(struct il_priv *il, const u8 * bssid); u8 il3945_hw_find_station(struct il_priv *il, const u8 *bssid);
extern __le32 il3945_get_antenna_flags(const struct il_priv *il); __le32 il3945_get_antenna_flags(const struct il_priv *il);
extern int il3945_init_hw_rate_table(struct il_priv *il); int il3945_init_hw_rate_table(struct il_priv *il);
extern void il3945_reg_txpower_periodic(struct il_priv *il); void il3945_reg_txpower_periodic(struct il_priv *il);
extern int il3945_txpower_set_from_eeprom(struct il_priv *il); int il3945_txpower_set_from_eeprom(struct il_priv *il);
extern int il3945_rs_next_rate(struct il_priv *il, int rate); int il3945_rs_next_rate(struct il_priv *il, int rate);
/* scanning */ /* scanning */
int il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif); int il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
......
...@@ -272,7 +272,7 @@ il4965_hw_valid_rtc_data_addr(u32 addr) ...@@ -272,7 +272,7 @@ il4965_hw_valid_rtc_data_addr(u32 addr)
((t) < IL_TX_POWER_TEMPERATURE_MIN || \ ((t) < IL_TX_POWER_TEMPERATURE_MIN || \
(t) > IL_TX_POWER_TEMPERATURE_MAX) (t) > IL_TX_POWER_TEMPERATURE_MAX)
extern void il4965_temperature_calib(struct il_priv *il); void il4965_temperature_calib(struct il_priv *il);
/********************* END TEMPERATURE ***************************************/ /********************* END TEMPERATURE ***************************************/
/********************* START TXPOWER *****************************************/ /********************* START TXPOWER *****************************************/
......
...@@ -858,9 +858,9 @@ struct il_hw_params { ...@@ -858,9 +858,9 @@ struct il_hw_params {
* il4965_mac_ <-- mac80211 callback * il4965_mac_ <-- mac80211 callback
* *
****************************************************************************/ ****************************************************************************/
extern void il4965_update_chain_flags(struct il_priv *il); void il4965_update_chain_flags(struct il_priv *il);
extern const u8 il_bcast_addr[ETH_ALEN]; extern const u8 il_bcast_addr[ETH_ALEN];
extern int il_queue_space(const struct il_queue *q); int il_queue_space(const struct il_queue *q);
static inline int static inline int
il_queue_used(const struct il_queue *q, int i) il_queue_used(const struct il_queue *q, int i)
{ {
...@@ -1727,7 +1727,7 @@ int il_alloc_txq_mem(struct il_priv *il); ...@@ -1727,7 +1727,7 @@ int il_alloc_txq_mem(struct il_priv *il);
void il_free_txq_mem(struct il_priv *il); void il_free_txq_mem(struct il_priv *il);
#ifdef CONFIG_IWLEGACY_DEBUGFS #ifdef CONFIG_IWLEGACY_DEBUGFS
extern void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len); void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len);
#else #else
static inline void static inline void
il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len)
...@@ -1760,12 +1760,12 @@ void il_chswitch_done(struct il_priv *il, bool is_success); ...@@ -1760,12 +1760,12 @@ void il_chswitch_done(struct il_priv *il, bool is_success);
/***************************************************** /*****************************************************
* TX * TX
******************************************************/ ******************************************************/
extern void il_txq_update_write_ptr(struct il_priv *il, struct il_tx_queue *txq); void il_txq_update_write_ptr(struct il_priv *il, struct il_tx_queue *txq);
extern int il_tx_queue_init(struct il_priv *il, u32 txq_id); int il_tx_queue_init(struct il_priv *il, u32 txq_id);
extern void il_tx_queue_reset(struct il_priv *il, u32 txq_id); void il_tx_queue_reset(struct il_priv *il, u32 txq_id);
extern void il_tx_queue_unmap(struct il_priv *il, int txq_id); void il_tx_queue_unmap(struct il_priv *il, int txq_id);
extern void il_tx_queue_free(struct il_priv *il, int txq_id); void il_tx_queue_free(struct il_priv *il, int txq_id);
extern void il_setup_watchdog(struct il_priv *il); void il_setup_watchdog(struct il_priv *il);
/***************************************************** /*****************************************************
* TX power * TX power
****************************************************/ ****************************************************/
...@@ -1931,10 +1931,10 @@ il_is_ready_rf(struct il_priv *il) ...@@ -1931,10 +1931,10 @@ il_is_ready_rf(struct il_priv *il)
return il_is_ready(il); return il_is_ready(il);
} }
extern void il_send_bt_config(struct il_priv *il); void il_send_bt_config(struct il_priv *il);
extern int il_send_stats_request(struct il_priv *il, u8 flags, bool clear); int il_send_stats_request(struct il_priv *il, u8 flags, bool clear);
extern void il_apm_stop(struct il_priv *il); void il_apm_stop(struct il_priv *il);
extern void _il_apm_stop(struct il_priv *il); void _il_apm_stop(struct il_priv *il);
int il_apm_init(struct il_priv *il); int il_apm_init(struct il_priv *il);
...@@ -1968,15 +1968,15 @@ void il_tx_cmd_protection(struct il_priv *il, struct ieee80211_tx_info *info, ...@@ -1968,15 +1968,15 @@ void il_tx_cmd_protection(struct il_priv *il, struct ieee80211_tx_info *info,
irqreturn_t il_isr(int irq, void *data); irqreturn_t il_isr(int irq, void *data);
extern void il_set_bit(struct il_priv *p, u32 r, u32 m); void il_set_bit(struct il_priv *p, u32 r, u32 m);
extern void il_clear_bit(struct il_priv *p, u32 r, u32 m); void il_clear_bit(struct il_priv *p, u32 r, u32 m);
extern bool _il_grab_nic_access(struct il_priv *il); bool _il_grab_nic_access(struct il_priv *il);
extern int _il_poll_bit(struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout); int _il_poll_bit(struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout);
extern int il_poll_bit(struct il_priv *il, u32 addr, u32 mask, int timeout); int il_poll_bit(struct il_priv *il, u32 addr, u32 mask, int timeout);
extern u32 il_rd_prph(struct il_priv *il, u32 reg); u32 il_rd_prph(struct il_priv *il, u32 reg);
extern void il_wr_prph(struct il_priv *il, u32 addr, u32 val); void il_wr_prph(struct il_priv *il, u32 addr, u32 val);
extern u32 il_read_targ_mem(struct il_priv *il, u32 addr); u32 il_read_targ_mem(struct il_priv *il, u32 addr);
extern void il_write_targ_mem(struct il_priv *il, u32 addr, u32 val); void il_write_targ_mem(struct il_priv *il, u32 addr, u32 val);
static inline void static inline void
_il_write8(struct il_priv *il, u32 ofs, u8 val) _il_write8(struct il_priv *il, u32 ofs, u8 val)
...@@ -2868,13 +2868,13 @@ il4965_first_antenna(u8 mask) ...@@ -2868,13 +2868,13 @@ il4965_first_antenna(u8 mask)
* The specific throughput table used is based on the type of network * The specific throughput table used is based on the type of network
* the associated with, including A, B, G, and G w/ TGG protection * the associated with, including A, B, G, and G w/ TGG protection
*/ */
extern void il3945_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id); void il3945_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id);
/* Initialize station's rate scaling information after adding station */ /* Initialize station's rate scaling information after adding station */
extern void il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, void il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta,
u8 sta_id); u8 sta_id);
extern void il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, void il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta,
u8 sta_id); u8 sta_id);
/** /**
* il_rate_control_register - Register the rate control algorithm callbacks * il_rate_control_register - Register the rate control algorithm callbacks
...@@ -2886,8 +2886,8 @@ extern void il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, ...@@ -2886,8 +2886,8 @@ extern void il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta,
* ieee80211_register_hw * ieee80211_register_hw
* *
*/ */
extern int il4965_rate_control_register(void); int il4965_rate_control_register(void);
extern int il3945_rate_control_register(void); int il3945_rate_control_register(void);
/** /**
* il_rate_control_unregister - Unregister the rate control callbacks * il_rate_control_unregister - Unregister the rate control callbacks
...@@ -2895,11 +2895,11 @@ extern int il3945_rate_control_register(void); ...@@ -2895,11 +2895,11 @@ extern int il3945_rate_control_register(void);
* This should be called after calling ieee80211_unregister_hw, but before * This should be called after calling ieee80211_unregister_hw, but before
* the driver is unloaded. * the driver is unloaded.
*/ */
extern void il4965_rate_control_unregister(void); void il4965_rate_control_unregister(void);
extern void il3945_rate_control_unregister(void); void il3945_rate_control_unregister(void);
extern int il_power_update_mode(struct il_priv *il, bool force); int il_power_update_mode(struct il_priv *il, bool force);
extern void il_power_initialize(struct il_priv *il); void il_power_initialize(struct il_priv *il);
extern u32 il_debug_level; extern u32 il_debug_level;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册