Commit 10dd9b7c authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

cfg80211.h/mac80211.h: 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.

Reflow modified prototypes to 80 columns.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1d8f804
...@@ -2841,7 +2841,7 @@ struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv); ...@@ -2841,7 +2841,7 @@ struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv);
* *
* Return: A non-negative wiphy index or a negative error code. * Return: A non-negative wiphy index or a negative error code.
*/ */
extern int wiphy_register(struct wiphy *wiphy); int wiphy_register(struct wiphy *wiphy);
/** /**
* wiphy_unregister - deregister a wiphy from cfg80211 * wiphy_unregister - deregister a wiphy from cfg80211
...@@ -2852,14 +2852,14 @@ extern int wiphy_register(struct wiphy *wiphy); ...@@ -2852,14 +2852,14 @@ extern int wiphy_register(struct wiphy *wiphy);
* pointer, but the call may sleep to wait for an outstanding * pointer, but the call may sleep to wait for an outstanding
* request that is being handled. * request that is being handled.
*/ */
extern void wiphy_unregister(struct wiphy *wiphy); void wiphy_unregister(struct wiphy *wiphy);
/** /**
* wiphy_free - free wiphy * wiphy_free - free wiphy
* *
* @wiphy: The wiphy to free * @wiphy: The wiphy to free
*/ */
extern void wiphy_free(struct wiphy *wiphy); void wiphy_free(struct wiphy *wiphy);
/* internal structs */ /* internal structs */
struct cfg80211_conn; struct cfg80211_conn;
...@@ -3014,14 +3014,14 @@ static inline void *wdev_priv(struct wireless_dev *wdev) ...@@ -3014,14 +3014,14 @@ static inline void *wdev_priv(struct wireless_dev *wdev)
* @band: band, necessary due to channel number overlap * @band: band, necessary due to channel number overlap
* Return: The corresponding frequency (in MHz), or 0 if the conversion failed. * Return: The corresponding frequency (in MHz), or 0 if the conversion failed.
*/ */
extern int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band); int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band);
/** /**
* ieee80211_frequency_to_channel - convert frequency to channel number * ieee80211_frequency_to_channel - convert frequency to channel number
* @freq: center frequency * @freq: center frequency
* Return: The corresponding channel, or 0 if the conversion failed. * Return: The corresponding channel, or 0 if the conversion failed.
*/ */
extern int ieee80211_frequency_to_channel(int freq); int ieee80211_frequency_to_channel(int freq);
/* /*
* Name indirection necessary because the ieee80211 code also has * Name indirection necessary because the ieee80211 code also has
...@@ -3030,7 +3030,7 @@ extern int ieee80211_frequency_to_channel(int freq); ...@@ -3030,7 +3030,7 @@ extern int ieee80211_frequency_to_channel(int freq);
* to include both header files you'll (rightfully!) get a symbol * to include both header files you'll (rightfully!) get a symbol
* clash. * clash.
*/ */
extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
int freq); int freq);
/** /**
* ieee80211_get_channel - get channel struct from wiphy for specified frequency * ieee80211_get_channel - get channel struct from wiphy for specified frequency
...@@ -3141,13 +3141,14 @@ struct ieee80211_radiotap_iterator { ...@@ -3141,13 +3141,14 @@ struct ieee80211_radiotap_iterator {
int _reset_on_ext; int _reset_on_ext;
}; };
extern int ieee80211_radiotap_iterator_init( int
struct ieee80211_radiotap_iterator *iterator, ieee80211_radiotap_iterator_init(struct ieee80211_radiotap_iterator *iterator,
struct ieee80211_radiotap_header *radiotap_header, struct ieee80211_radiotap_header *radiotap_header,
int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns); int max_length,
const struct ieee80211_radiotap_vendor_namespaces *vns);
extern int ieee80211_radiotap_iterator_next( int
struct ieee80211_radiotap_iterator *iterator); ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator);
extern const unsigned char rfc1042_header[6]; extern const unsigned char rfc1042_header[6];
...@@ -3307,7 +3308,7 @@ const u8 *cfg80211_find_vendor_ie(unsigned int oui, u8 oui_type, ...@@ -3307,7 +3308,7 @@ const u8 *cfg80211_find_vendor_ie(unsigned int oui, u8 oui_type,
* *
* Return: 0 on success. -ENOMEM. * Return: 0 on success. -ENOMEM.
*/ */
extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2); int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
/** /**
* wiphy_apply_custom_regulatory - apply a custom driver regulatory domain * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
...@@ -3321,8 +3322,7 @@ extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2); ...@@ -3321,8 +3322,7 @@ extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
* default channel settings will be disregarded. If no rule is found for a * default channel settings will be disregarded. If no rule is found for a
* channel on the regulatory domain the channel will be disabled. * channel on the regulatory domain the channel will be disabled.
*/ */
extern void wiphy_apply_custom_regulatory( void wiphy_apply_custom_regulatory(struct wiphy *wiphy,
struct wiphy *wiphy,
const struct ieee80211_regdomain *regd); const struct ieee80211_regdomain *regd);
/** /**
......
...@@ -2877,12 +2877,12 @@ enum ieee80211_tpt_led_trigger_flags { ...@@ -2877,12 +2877,12 @@ enum ieee80211_tpt_led_trigger_flags {
}; };
#ifdef CONFIG_MAC80211_LEDS #ifdef CONFIG_MAC80211_LEDS
extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw);
extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw);
extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw); char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw);
extern char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw); char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw);
extern char *__ieee80211_create_tpt_led_trigger( char *__ieee80211_create_tpt_led_trigger(struct ieee80211_hw *hw,
struct ieee80211_hw *hw, unsigned int flags, unsigned int flags,
const struct ieee80211_tpt_blink *blink_table, const struct ieee80211_tpt_blink *blink_table,
unsigned int blink_table_len); unsigned int blink_table_len);
#endif #endif
......
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