Skip to content

Commit fd97ba5

Browse files
committed
Merge branch '20130925_dn_externs_3' of git://repo.or.cz/linux-2.6/trivial-mods
More extern removals from Joe Perches. Signed-off-by: David S. Miller <[email protected]>
2 parents c359ca8 + a958df5 commit fd97ba5

File tree

51 files changed

+1026
-1174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1026
-1174
lines changed

drivers/net/vmxnet3/vmxnet3_int.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ int
410410
vmxnet3_create_queues(struct vmxnet3_adapter *adapter,
411411
u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size);
412412

413-
extern void vmxnet3_set_ethtool_ops(struct net_device *netdev);
413+
void vmxnet3_set_ethtool_ops(struct net_device *netdev);
414414

415-
extern struct rtnl_link_stats64 *
415+
struct rtnl_link_stats64 *
416416
vmxnet3_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats);
417417

418418
extern char vmxnet3_driver_name[];

drivers/net/wan/x25_asy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ struct x25_asy {
4141

4242
#define X25_ASY_MAGIC 0x5303
4343

44-
extern int x25_asy_init(struct net_device *dev);
44+
int x25_asy_init(struct net_device *dev);
4545

4646
#endif /* _LINUX_X25_ASY.H */

drivers/net/wan/z85230.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -395,20 +395,19 @@ struct z8530_dev
395395
extern u8 z8530_dead_port[];
396396
extern u8 z8530_hdlc_kilostream_85230[];
397397
extern u8 z8530_hdlc_kilostream[];
398-
extern irqreturn_t z8530_interrupt(int, void *);
399-
extern void z8530_describe(struct z8530_dev *, char *mapping, unsigned long io);
400-
extern int z8530_init(struct z8530_dev *);
401-
extern int z8530_shutdown(struct z8530_dev *);
402-
extern int z8530_sync_open(struct net_device *, struct z8530_channel *);
403-
extern int z8530_sync_close(struct net_device *, struct z8530_channel *);
404-
extern int z8530_sync_dma_open(struct net_device *, struct z8530_channel *);
405-
extern int z8530_sync_dma_close(struct net_device *, struct z8530_channel *);
406-
extern int z8530_sync_txdma_open(struct net_device *, struct z8530_channel *);
407-
extern int z8530_sync_txdma_close(struct net_device *, struct z8530_channel *);
408-
extern int z8530_channel_load(struct z8530_channel *, u8 *);
409-
extern netdev_tx_t z8530_queue_xmit(struct z8530_channel *c,
410-
struct sk_buff *skb);
411-
extern void z8530_null_rx(struct z8530_channel *c, struct sk_buff *skb);
398+
irqreturn_t z8530_interrupt(int, void *);
399+
void z8530_describe(struct z8530_dev *, char *mapping, unsigned long io);
400+
int z8530_init(struct z8530_dev *);
401+
int z8530_shutdown(struct z8530_dev *);
402+
int z8530_sync_open(struct net_device *, struct z8530_channel *);
403+
int z8530_sync_close(struct net_device *, struct z8530_channel *);
404+
int z8530_sync_dma_open(struct net_device *, struct z8530_channel *);
405+
int z8530_sync_dma_close(struct net_device *, struct z8530_channel *);
406+
int z8530_sync_txdma_open(struct net_device *, struct z8530_channel *);
407+
int z8530_sync_txdma_close(struct net_device *, struct z8530_channel *);
408+
int z8530_channel_load(struct z8530_channel *, u8 *);
409+
netdev_tx_t z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb);
410+
void z8530_null_rx(struct z8530_channel *c, struct sk_buff *skb);
412411

413412

414413
/*

drivers/net/wimax/i2400m/i2400m-usb.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,20 @@ void i2400mu_init(struct i2400mu *i2400mu)
256256
i2400mu->rx_size_auto_shrink = 1;
257257
}
258258

259-
extern int i2400mu_notification_setup(struct i2400mu *);
260-
extern void i2400mu_notification_release(struct i2400mu *);
259+
int i2400mu_notification_setup(struct i2400mu *);
260+
void i2400mu_notification_release(struct i2400mu *);
261261

262-
extern int i2400mu_rx_setup(struct i2400mu *);
263-
extern void i2400mu_rx_release(struct i2400mu *);
264-
extern void i2400mu_rx_kick(struct i2400mu *);
262+
int i2400mu_rx_setup(struct i2400mu *);
263+
void i2400mu_rx_release(struct i2400mu *);
264+
void i2400mu_rx_kick(struct i2400mu *);
265265

266-
extern int i2400mu_tx_setup(struct i2400mu *);
267-
extern void i2400mu_tx_release(struct i2400mu *);
268-
extern void i2400mu_bus_tx_kick(struct i2400m *);
266+
int i2400mu_tx_setup(struct i2400mu *);
267+
void i2400mu_tx_release(struct i2400mu *);
268+
void i2400mu_bus_tx_kick(struct i2400m *);
269269

270-
extern ssize_t i2400mu_bus_bm_cmd_send(struct i2400m *,
271-
const struct i2400m_bootrom_header *,
272-
size_t, int);
273-
extern ssize_t i2400mu_bus_bm_wait_for_ack(struct i2400m *,
274-
struct i2400m_bootrom_header *,
275-
size_t);
270+
ssize_t i2400mu_bus_bm_cmd_send(struct i2400m *,
271+
const struct i2400m_bootrom_header *, size_t,
272+
int);
273+
ssize_t i2400mu_bus_bm_wait_for_ack(struct i2400m *,
274+
struct i2400m_bootrom_header *, size_t);
276275
#endif /* #ifndef __I2400M_USB_H__ */

drivers/net/wimax/i2400m/i2400m.h

Lines changed: 57 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -710,18 +710,18 @@ enum i2400m_bri {
710710
I2400M_BRI_MAC_REINIT = 1 << 3,
711711
};
712712

713-
extern void i2400m_bm_cmd_prepare(struct i2400m_bootrom_header *);
714-
extern int i2400m_dev_bootstrap(struct i2400m *, enum i2400m_bri);
715-
extern int i2400m_read_mac_addr(struct i2400m *);
716-
extern int i2400m_bootrom_init(struct i2400m *, enum i2400m_bri);
717-
extern int i2400m_is_boot_barker(struct i2400m *, const void *, size_t);
713+
void i2400m_bm_cmd_prepare(struct i2400m_bootrom_header *);
714+
int i2400m_dev_bootstrap(struct i2400m *, enum i2400m_bri);
715+
int i2400m_read_mac_addr(struct i2400m *);
716+
int i2400m_bootrom_init(struct i2400m *, enum i2400m_bri);
717+
int i2400m_is_boot_barker(struct i2400m *, const void *, size_t);
718718
static inline
719719
int i2400m_is_d2h_barker(const void *buf)
720720
{
721721
const __le32 *barker = buf;
722722
return le32_to_cpu(*barker) == I2400M_D2H_MSG_BARKER;
723723
}
724-
extern void i2400m_unknown_barker(struct i2400m *, const void *, size_t);
724+
void i2400m_unknown_barker(struct i2400m *, const void *, size_t);
725725

726726
/* Make/grok boot-rom header commands */
727727

@@ -789,32 +789,31 @@ unsigned i2400m_brh_get_signature(const struct i2400m_bootrom_header *hdr)
789789
/*
790790
* Driver / device setup and internal functions
791791
*/
792-
extern void i2400m_init(struct i2400m *);
793-
extern int i2400m_reset(struct i2400m *, enum i2400m_reset_type);
794-
extern void i2400m_netdev_setup(struct net_device *net_dev);
795-
extern int i2400m_sysfs_setup(struct device_driver *);
796-
extern void i2400m_sysfs_release(struct device_driver *);
797-
extern int i2400m_tx_setup(struct i2400m *);
798-
extern void i2400m_wake_tx_work(struct work_struct *);
799-
extern void i2400m_tx_release(struct i2400m *);
800-
801-
extern int i2400m_rx_setup(struct i2400m *);
802-
extern void i2400m_rx_release(struct i2400m *);
803-
804-
extern void i2400m_fw_cache(struct i2400m *);
805-
extern void i2400m_fw_uncache(struct i2400m *);
806-
807-
extern void i2400m_net_rx(struct i2400m *, struct sk_buff *, unsigned,
808-
const void *, int);
809-
extern void i2400m_net_erx(struct i2400m *, struct sk_buff *,
810-
enum i2400m_cs);
811-
extern void i2400m_net_wake_stop(struct i2400m *);
792+
void i2400m_init(struct i2400m *);
793+
int i2400m_reset(struct i2400m *, enum i2400m_reset_type);
794+
void i2400m_netdev_setup(struct net_device *net_dev);
795+
int i2400m_sysfs_setup(struct device_driver *);
796+
void i2400m_sysfs_release(struct device_driver *);
797+
int i2400m_tx_setup(struct i2400m *);
798+
void i2400m_wake_tx_work(struct work_struct *);
799+
void i2400m_tx_release(struct i2400m *);
800+
801+
int i2400m_rx_setup(struct i2400m *);
802+
void i2400m_rx_release(struct i2400m *);
803+
804+
void i2400m_fw_cache(struct i2400m *);
805+
void i2400m_fw_uncache(struct i2400m *);
806+
807+
void i2400m_net_rx(struct i2400m *, struct sk_buff *, unsigned, const void *,
808+
int);
809+
void i2400m_net_erx(struct i2400m *, struct sk_buff *, enum i2400m_cs);
810+
void i2400m_net_wake_stop(struct i2400m *);
812811
enum i2400m_pt;
813-
extern int i2400m_tx(struct i2400m *, const void *, size_t, enum i2400m_pt);
812+
int i2400m_tx(struct i2400m *, const void *, size_t, enum i2400m_pt);
814813

815814
#ifdef CONFIG_DEBUG_FS
816-
extern int i2400m_debugfs_add(struct i2400m *);
817-
extern void i2400m_debugfs_rm(struct i2400m *);
815+
int i2400m_debugfs_add(struct i2400m *);
816+
void i2400m_debugfs_rm(struct i2400m *);
818817
#else
819818
static inline int i2400m_debugfs_add(struct i2400m *i2400m)
820819
{
@@ -824,8 +823,8 @@ static inline void i2400m_debugfs_rm(struct i2400m *i2400m) {}
824823
#endif
825824

826825
/* Initialize/shutdown the device */
827-
extern int i2400m_dev_initialize(struct i2400m *);
828-
extern void i2400m_dev_shutdown(struct i2400m *);
826+
int i2400m_dev_initialize(struct i2400m *);
827+
void i2400m_dev_shutdown(struct i2400m *);
829828

830829
extern struct attribute_group i2400m_dev_attr_group;
831830

@@ -873,21 +872,21 @@ void i2400m_put(struct i2400m *i2400m)
873872
dev_put(i2400m->wimax_dev.net_dev);
874873
}
875874

876-
extern int i2400m_dev_reset_handle(struct i2400m *, const char *);
877-
extern int i2400m_pre_reset(struct i2400m *);
878-
extern int i2400m_post_reset(struct i2400m *);
879-
extern void i2400m_error_recovery(struct i2400m *);
875+
int i2400m_dev_reset_handle(struct i2400m *, const char *);
876+
int i2400m_pre_reset(struct i2400m *);
877+
int i2400m_post_reset(struct i2400m *);
878+
void i2400m_error_recovery(struct i2400m *);
880879

881880
/*
882881
* _setup()/_release() are called by the probe/disconnect functions of
883882
* the bus-specific drivers.
884883
*/
885-
extern int i2400m_setup(struct i2400m *, enum i2400m_bri bm_flags);
886-
extern void i2400m_release(struct i2400m *);
884+
int i2400m_setup(struct i2400m *, enum i2400m_bri bm_flags);
885+
void i2400m_release(struct i2400m *);
887886

888-
extern int i2400m_rx(struct i2400m *, struct sk_buff *);
889-
extern struct i2400m_msg_hdr *i2400m_tx_msg_get(struct i2400m *, size_t *);
890-
extern void i2400m_tx_msg_sent(struct i2400m *);
887+
int i2400m_rx(struct i2400m *, struct sk_buff *);
888+
struct i2400m_msg_hdr *i2400m_tx_msg_get(struct i2400m *, size_t *);
889+
void i2400m_tx_msg_sent(struct i2400m *);
891890

892891

893892
/*
@@ -900,31 +899,29 @@ struct device *i2400m_dev(struct i2400m *i2400m)
900899
return i2400m->wimax_dev.net_dev->dev.parent;
901900
}
902901

903-
extern int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *,
904-
char *, size_t);
905-
extern int i2400m_msg_size_check(struct i2400m *,
906-
const struct i2400m_l3l4_hdr *, size_t);
907-
extern struct sk_buff *i2400m_msg_to_dev(struct i2400m *, const void *, size_t);
908-
extern void i2400m_msg_to_dev_cancel_wait(struct i2400m *, int);
909-
extern void i2400m_report_hook(struct i2400m *,
910-
const struct i2400m_l3l4_hdr *, size_t);
911-
extern void i2400m_report_hook_work(struct work_struct *);
912-
extern int i2400m_cmd_enter_powersave(struct i2400m *);
913-
extern int i2400m_cmd_exit_idle(struct i2400m *);
914-
extern struct sk_buff *i2400m_get_device_info(struct i2400m *);
915-
extern int i2400m_firmware_check(struct i2400m *);
916-
extern int i2400m_set_idle_timeout(struct i2400m *, unsigned);
902+
int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *, char *, size_t);
903+
int i2400m_msg_size_check(struct i2400m *, const struct i2400m_l3l4_hdr *,
904+
size_t);
905+
struct sk_buff *i2400m_msg_to_dev(struct i2400m *, const void *, size_t);
906+
void i2400m_msg_to_dev_cancel_wait(struct i2400m *, int);
907+
void i2400m_report_hook(struct i2400m *, const struct i2400m_l3l4_hdr *,
908+
size_t);
909+
void i2400m_report_hook_work(struct work_struct *);
910+
int i2400m_cmd_enter_powersave(struct i2400m *);
911+
int i2400m_cmd_exit_idle(struct i2400m *);
912+
struct sk_buff *i2400m_get_device_info(struct i2400m *);
913+
int i2400m_firmware_check(struct i2400m *);
914+
int i2400m_set_idle_timeout(struct i2400m *, unsigned);
917915

918916
static inline
919917
struct usb_endpoint_descriptor *usb_get_epd(struct usb_interface *iface, int ep)
920918
{
921919
return &iface->cur_altsetting->endpoint[ep].desc;
922920
}
923921

924-
extern int i2400m_op_rfkill_sw_toggle(struct wimax_dev *,
925-
enum wimax_rf_state);
926-
extern void i2400m_report_tlv_rf_switches_status(
927-
struct i2400m *, const struct i2400m_tlv_rf_switches_status *);
922+
int i2400m_op_rfkill_sw_toggle(struct wimax_dev *, enum wimax_rf_state);
923+
void i2400m_report_tlv_rf_switches_status(struct i2400m *,
924+
const struct i2400m_tlv_rf_switches_status *);
928925

929926
/*
930927
* Helpers for firmware backwards compatibility
@@ -968,8 +965,8 @@ void __i2400m_msleep(unsigned ms)
968965

969966

970967
/* module initialization helpers */
971-
extern int i2400m_barker_db_init(const char *);
972-
extern void i2400m_barker_db_exit(void);
968+
int i2400m_barker_db_init(const char *);
969+
void i2400m_barker_db_exit(void);
973970

974971

975972

drivers/net/wireless/ath/ath10k/debug.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ enum ath10k_debug_mask {
3737

3838
extern unsigned int ath10k_debug_mask;
3939

40-
extern __printf(1, 2) int ath10k_info(const char *fmt, ...);
41-
extern __printf(1, 2) int ath10k_err(const char *fmt, ...);
42-
extern __printf(1, 2) int ath10k_warn(const char *fmt, ...);
40+
__printf(1, 2) int ath10k_info(const char *fmt, ...);
41+
__printf(1, 2) int ath10k_err(const char *fmt, ...);
42+
__printf(1, 2) int ath10k_warn(const char *fmt, ...);
4343

4444
#ifdef CONFIG_ATH10K_DEBUGFS
4545
int ath10k_debug_create(struct ath10k *ar);
@@ -68,7 +68,7 @@ static inline void ath10k_debug_read_target_stats(struct ath10k *ar,
6868
#endif /* CONFIG_ATH10K_DEBUGFS */
6969

7070
#ifdef CONFIG_ATH10K_DEBUG
71-
extern __printf(2, 3) void ath10k_dbg(enum ath10k_debug_mask mask,
71+
__printf(2, 3) void ath10k_dbg(enum ath10k_debug_mask mask,
7272
const char *fmt, ...);
7373
void ath10k_dbg_dump(enum ath10k_debug_mask mask,
7474
const char *msg, const char *prefix,

drivers/net/wireless/ath/ath6kl/common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
#define ATH6KL_MAX_IE 256
2424

25-
extern __printf(2, 3)
26-
int ath6kl_printk(const char *level, const char *fmt, ...);
25+
__printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...);
2726

2827
/*
2928
* Reflects the version of binary interface exposed by ATH6KL target

drivers/net/wireless/ath/ath6kl/debug.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ enum ATH6K_DEBUG_MASK {
5050
};
5151

5252
extern unsigned int debug_mask;
53-
extern __printf(2, 3)
54-
int ath6kl_printk(const char *level, const char *fmt, ...);
55-
extern __printf(1, 2) int ath6kl_info(const char *fmt, ...);
56-
extern __printf(1, 2) int ath6kl_err(const char *fmt, ...);
57-
extern __printf(1, 2) int ath6kl_warn(const char *fmt, ...);
53+
__printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...);
54+
__printf(1, 2) int ath6kl_info(const char *fmt, ...);
55+
__printf(1, 2) int ath6kl_err(const char *fmt, ...);
56+
__printf(1, 2) int ath6kl_warn(const char *fmt, ...);
5857

5958
enum ath6kl_war {
6059
ATH6KL_WAR_INVALID_RATE,

drivers/net/wireless/ath/ath9k/ath9k.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ void ath9k_ps_restore(struct ath_softc *sc);
952952
u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate);
953953

954954
void ath_start_rfkill_poll(struct ath_softc *sc);
955-
extern void ath9k_rfkill_poll_state(struct ieee80211_hw *hw);
955+
void ath9k_rfkill_poll_state(struct ieee80211_hw *hw);
956956
void ath9k_calculate_iter_data(struct ieee80211_hw *hw,
957957
struct ieee80211_vif *vif,
958958
struct ath9k_vif_iter_data *iter_data);

drivers/net/wireless/brcm80211/brcmfmac/dhd.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -632,29 +632,29 @@ struct brcmf_skb_reorder_data {
632632
u8 *reorder;
633633
};
634634

635-
extern int brcmf_netdev_wait_pend8021x(struct net_device *ndev);
635+
int brcmf_netdev_wait_pend8021x(struct net_device *ndev);
636636

637637
/* Return pointer to interface name */
638-
extern char *brcmf_ifname(struct brcmf_pub *drvr, int idx);
638+
char *brcmf_ifname(struct brcmf_pub *drvr, int idx);
639639

640640
/* Query dongle */
641-
extern int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx,
642-
uint cmd, void *buf, uint len);
643-
extern int brcmf_proto_cdc_set_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd,
644-
void *buf, uint len);
641+
int brcmf_proto_cdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd,
642+
void *buf, uint len);
643+
int brcmf_proto_cdc_set_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd,
644+
void *buf, uint len);
645645

646646
/* Remove any protocol-specific data header. */
647-
extern int brcmf_proto_hdrpull(struct brcmf_pub *drvr, bool do_fws, u8 *ifidx,
648-
struct sk_buff *rxp);
647+
int brcmf_proto_hdrpull(struct brcmf_pub *drvr, bool do_fws, u8 *ifidx,
648+
struct sk_buff *rxp);
649649

650-
extern int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked);
651-
extern struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx,
652-
s32 ifidx, char *name, u8 *mac_addr);
653-
extern void brcmf_del_if(struct brcmf_pub *drvr, s32 bssidx);
650+
int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked);
651+
struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx, s32 ifidx,
652+
char *name, u8 *mac_addr);
653+
void brcmf_del_if(struct brcmf_pub *drvr, s32 bssidx);
654654
void brcmf_txflowblock_if(struct brcmf_if *ifp,
655655
enum brcmf_netif_stop_reason reason, bool state);
656-
extern u32 brcmf_get_chip_info(struct brcmf_if *ifp);
657-
extern void brcmf_txfinalize(struct brcmf_pub *drvr, struct sk_buff *txp,
658-
bool success);
656+
u32 brcmf_get_chip_info(struct brcmf_if *ifp);
657+
void brcmf_txfinalize(struct brcmf_pub *drvr, struct sk_buff *txp,
658+
bool success);
659659

660660
#endif /* _BRCMF_H_ */

0 commit comments

Comments
 (0)