Commit 89eb744f authored by Joe Perches's avatar Joe Perches

ipw2x00: 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 9bd91f3c
...@@ -950,66 +950,55 @@ static inline int libipw_is_cck_rate(u8 rate) ...@@ -950,66 +950,55 @@ static inline int libipw_is_cck_rate(u8 rate)
} }
/* libipw.c */ /* libipw.c */
extern void free_libipw(struct net_device *dev, int monitor); void free_libipw(struct net_device *dev, int monitor);
extern struct net_device *alloc_libipw(int sizeof_priv, int monitor); struct net_device *alloc_libipw(int sizeof_priv, int monitor);
extern int libipw_change_mtu(struct net_device *dev, int new_mtu); int libipw_change_mtu(struct net_device *dev, int new_mtu);
extern void libipw_networks_age(struct libipw_device *ieee, void libipw_networks_age(struct libipw_device *ieee, unsigned long age_secs);
unsigned long age_secs);
extern int libipw_set_encryption(struct libipw_device *ieee); int libipw_set_encryption(struct libipw_device *ieee);
/* libipw_tx.c */ /* libipw_tx.c */
extern netdev_tx_t libipw_xmit(struct sk_buff *skb, netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev);
struct net_device *dev); void libipw_txb_free(struct libipw_txb *);
extern void libipw_txb_free(struct libipw_txb *);
/* libipw_rx.c */ /* libipw_rx.c */
extern void libipw_rx_any(struct libipw_device *ieee, void libipw_rx_any(struct libipw_device *ieee, struct sk_buff *skb,
struct sk_buff *skb, struct libipw_rx_stats *stats); struct libipw_rx_stats *stats);
extern int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb, int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
struct libipw_rx_stats *rx_stats); struct libipw_rx_stats *rx_stats);
/* make sure to set stats->len */ /* make sure to set stats->len */
extern void libipw_rx_mgt(struct libipw_device *ieee, void libipw_rx_mgt(struct libipw_device *ieee, struct libipw_hdr_4addr *header,
struct libipw_hdr_4addr *header, struct libipw_rx_stats *stats);
struct libipw_rx_stats *stats); void libipw_network_reset(struct libipw_network *network);
extern void libipw_network_reset(struct libipw_network *network);
/* libipw_geo.c */ /* libipw_geo.c */
extern const struct libipw_geo *libipw_get_geo(struct libipw_device const struct libipw_geo *libipw_get_geo(struct libipw_device *ieee);
*ieee); void libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo);
extern void libipw_set_geo(struct libipw_device *ieee,
const struct libipw_geo *geo); int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel);
int libipw_channel_to_index(struct libipw_device *ieee, u8 channel);
extern int libipw_is_valid_channel(struct libipw_device *ieee, u8 libipw_freq_to_channel(struct libipw_device *ieee, u32 freq);
u8 channel); u8 libipw_get_channel_flags(struct libipw_device *ieee, u8 channel);
extern int libipw_channel_to_index(struct libipw_device *ieee, const struct libipw_channel *libipw_get_channel(struct libipw_device *ieee,
u8 channel); u8 channel);
extern u8 libipw_freq_to_channel(struct libipw_device *ieee, u32 freq); u32 libipw_channel_to_freq(struct libipw_device *ieee, u8 channel);
extern u8 libipw_get_channel_flags(struct libipw_device *ieee,
u8 channel);
extern const struct libipw_channel *libipw_get_channel(struct
libipw_device
*ieee, u8 channel);
extern u32 libipw_channel_to_freq(struct libipw_device * ieee,
u8 channel);
/* libipw_wx.c */ /* libipw_wx.c */
extern int libipw_wx_get_scan(struct libipw_device *ieee, int libipw_wx_get_scan(struct libipw_device *ieee, struct iw_request_info *info,
struct iw_request_info *info, union iwreq_data *wrqu, char *key);
union iwreq_data *wrqu, char *key); int libipw_wx_set_encode(struct libipw_device *ieee,
extern int libipw_wx_set_encode(struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu,
struct iw_request_info *info, char *key);
union iwreq_data *wrqu, char *key); int libipw_wx_get_encode(struct libipw_device *ieee,
extern int libipw_wx_get_encode(struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu,
struct iw_request_info *info, char *key);
union iwreq_data *wrqu, char *key); int libipw_wx_set_encodeext(struct libipw_device *ieee,
extern int libipw_wx_set_encodeext(struct libipw_device *ieee, struct iw_request_info *info,
struct iw_request_info *info, union iwreq_data *wrqu, char *extra);
union iwreq_data *wrqu, char *extra); int libipw_wx_get_encodeext(struct libipw_device *ieee,
extern int libipw_wx_get_encodeext(struct libipw_device *ieee, struct iw_request_info *info,
struct iw_request_info *info, union iwreq_data *wrqu, char *extra);
union iwreq_data *wrqu, char *extra);
static inline void libipw_increment_scans(struct libipw_device *ieee) static inline void libipw_increment_scans(struct libipw_device *ieee)
{ {
......
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