Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3818394 authored by Joe Perches's avatar Joe Perches
Browse files

iwlwifi: 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: default avatarJoe Perches <joe@perches.com>
parent 6890ba72
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -397,7 +397,7 @@ static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags)
	return cpu_to_le32(flags|(u32)rate);
	return cpu_to_le32(flags|(u32)rate);
}
}


extern int iwl_alive_start(struct iwl_priv *priv);
int iwl_alive_start(struct iwl_priv *priv);


#ifdef CONFIG_IWLWIFI_DEBUG
#ifdef CONFIG_IWLWIFI_DEBUG
void iwl_print_rx_config_cmd(struct iwl_priv *priv,
void iwl_print_rx_config_cmd(struct iwl_priv *priv,
+1 −1
Original line number Original line Diff line number Diff line
@@ -270,7 +270,7 @@ struct iwl_sensitivity_ranges {
 * iwlXXXX_     <-- Hardware specific (implemented in iwl-XXXX.c for XXXX)
 * iwlXXXX_     <-- Hardware specific (implemented in iwl-XXXX.c for XXXX)
 *
 *
 ****************************************************************************/
 ****************************************************************************/
extern void iwl_update_chain_flags(struct iwl_priv *priv);
void iwl_update_chain_flags(struct iwl_priv *priv);
extern const u8 iwl_bcast_addr[ETH_ALEN];
extern const u8 iwl_bcast_addr[ETH_ALEN];


#define IWL_OPERATION_MODE_AUTO     0
#define IWL_OPERATION_MODE_AUTO     0
+4 −4
Original line number Original line Diff line number Diff line
@@ -407,8 +407,8 @@ static inline u8 first_antenna(u8 mask)




/* Initialize station's rate scaling information after adding station */
/* Initialize station's rate scaling information after adding station */
extern void iwl_rs_rate_init(struct iwl_priv *priv,
void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta,
			     struct ieee80211_sta *sta, u8 sta_id);
		      u8 sta_id);


/**
/**
 * iwl_rate_control_register - Register the rate control algorithm callbacks
 * iwl_rate_control_register - Register the rate control algorithm callbacks
@@ -420,7 +420,7 @@ extern void iwl_rs_rate_init(struct iwl_priv *priv,
 * ieee80211_register_hw
 * ieee80211_register_hw
 *
 *
 */
 */
extern int iwlagn_rate_control_register(void);
int iwlagn_rate_control_register(void);


/**
/**
 * iwl_rate_control_unregister - Unregister the rate control callbacks
 * iwl_rate_control_unregister - Unregister the rate control callbacks
@@ -428,6 +428,6 @@ extern int iwlagn_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 iwlagn_rate_control_unregister(void);
void iwlagn_rate_control_unregister(void);


#endif /* __iwl_agn__rs__ */
#endif /* __iwl_agn__rs__ */
+4 −5
Original line number Original line Diff line number Diff line
@@ -314,8 +314,7 @@ static inline u8 num_of_ant(u8 mask)
}
}


/* Initialize station's rate scaling information after adding station */
/* Initialize station's rate scaling information after adding station */
extern void iwl_mvm_rs_rate_init(struct iwl_mvm *mvm,
void iwl_mvm_rs_rate_init(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
				 struct ieee80211_sta *sta,
			  enum ieee80211_band band);
			  enum ieee80211_band band);


/**
/**
@@ -328,7 +327,7 @@ extern void iwl_mvm_rs_rate_init(struct iwl_mvm *mvm,
 * ieee80211_register_hw
 * ieee80211_register_hw
 *
 *
 */
 */
extern int iwl_mvm_rate_control_register(void);
int iwl_mvm_rate_control_register(void);


/**
/**
 * iwl_rate_control_unregister - Unregister the rate control callbacks
 * iwl_rate_control_unregister - Unregister the rate control callbacks
@@ -336,7 +335,7 @@ extern int iwl_mvm_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 iwl_mvm_rate_control_unregister(void);
void iwl_mvm_rate_control_unregister(void);


struct iwl_mvm_sta;
struct iwl_mvm_sta;