diff options
author | Joe Perches <joe@perches.com> | 2013-09-23 14:37:59 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-24 15:51:37 -0400 |
commit | 5ccc921af41a862fe969809228f029035f851502 (patch) | |
tree | 2147a9de3f7c5b9320aa651df6b35f2ae1897fc4 /drivers | |
parent | d4cb2ee17dbb9fb636e5e127e8cb6cbde9d28cef (diff) |
intel: 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: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000.h | 32 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/e1000.h | 45 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_82575.h | 16 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_hw.h | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_i210.h | 38 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_mac.h | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb.h | 73 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/igbvf.h | 22 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb.h | 22 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_hw.h | 25 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe.h | 172 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 34 |
12 files changed, 233 insertions, 254 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000.h b/drivers/net/ethernet/intel/e1000/e1000.h index 26d9cd59ec75..58c147271a36 100644 --- a/drivers/net/ethernet/intel/e1000/e1000.h +++ b/drivers/net/ethernet/intel/e1000/e1000.h | |||
@@ -325,7 +325,7 @@ enum e1000_state_t { | |||
325 | #undef pr_fmt | 325 | #undef pr_fmt |
326 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 326 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
327 | 327 | ||
328 | extern struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); | 328 | struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); |
329 | #define e_dbg(format, arg...) \ | 329 | #define e_dbg(format, arg...) \ |
330 | netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) | 330 | netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) |
331 | #define e_err(msglvl, format, arg...) \ | 331 | #define e_err(msglvl, format, arg...) \ |
@@ -346,20 +346,20 @@ extern struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); | |||
346 | extern char e1000_driver_name[]; | 346 | extern char e1000_driver_name[]; |
347 | extern const char e1000_driver_version[]; | 347 | extern const char e1000_driver_version[]; |
348 | 348 | ||
349 | extern int e1000_up(struct e1000_adapter *adapter); | 349 | int e1000_up(struct e1000_adapter *adapter); |
350 | extern void e1000_down(struct e1000_adapter *adapter); | 350 | void e1000_down(struct e1000_adapter *adapter); |
351 | extern void e1000_reinit_locked(struct e1000_adapter *adapter); | 351 | void e1000_reinit_locked(struct e1000_adapter *adapter); |
352 | extern void e1000_reset(struct e1000_adapter *adapter); | 352 | void e1000_reset(struct e1000_adapter *adapter); |
353 | extern int e1000_set_spd_dplx(struct e1000_adapter *adapter, u32 spd, u8 dplx); | 353 | int e1000_set_spd_dplx(struct e1000_adapter *adapter, u32 spd, u8 dplx); |
354 | extern int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | 354 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); |
355 | extern int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | 355 | int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); |
356 | extern void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | 356 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); |
357 | extern void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | 357 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); |
358 | extern void e1000_update_stats(struct e1000_adapter *adapter); | 358 | void e1000_update_stats(struct e1000_adapter *adapter); |
359 | extern bool e1000_has_link(struct e1000_adapter *adapter); | 359 | bool e1000_has_link(struct e1000_adapter *adapter); |
360 | extern void e1000_power_up_phy(struct e1000_adapter *); | 360 | void e1000_power_up_phy(struct e1000_adapter *); |
361 | extern void e1000_set_ethtool_ops(struct net_device *netdev); | 361 | void e1000_set_ethtool_ops(struct net_device *netdev); |
362 | extern void e1000_check_options(struct e1000_adapter *adapter); | 362 | void e1000_check_options(struct e1000_adapter *adapter); |
363 | extern char *e1000_get_hw_dev_name(struct e1000_hw *hw); | 363 | char *e1000_get_hw_dev_name(struct e1000_hw *hw); |
364 | 364 | ||
365 | #endif /* _E1000_H_ */ | 365 | #endif /* _E1000_H_ */ |
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index ad0edd11015d..0150f7fc893d 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h | |||
@@ -472,26 +472,25 @@ enum latency_range { | |||
472 | extern char e1000e_driver_name[]; | 472 | extern char e1000e_driver_name[]; |
473 | extern const char e1000e_driver_version[]; | 473 | extern const char e1000e_driver_version[]; |
474 | 474 | ||
475 | extern void e1000e_check_options(struct e1000_adapter *adapter); | 475 | void e1000e_check_options(struct e1000_adapter *adapter); |
476 | extern void e1000e_set_ethtool_ops(struct net_device *netdev); | 476 | void e1000e_set_ethtool_ops(struct net_device *netdev); |
477 | 477 | ||
478 | extern int e1000e_up(struct e1000_adapter *adapter); | 478 | int e1000e_up(struct e1000_adapter *adapter); |
479 | extern void e1000e_down(struct e1000_adapter *adapter); | 479 | void e1000e_down(struct e1000_adapter *adapter); |
480 | extern void e1000e_reinit_locked(struct e1000_adapter *adapter); | 480 | void e1000e_reinit_locked(struct e1000_adapter *adapter); |
481 | extern void e1000e_reset(struct e1000_adapter *adapter); | 481 | void e1000e_reset(struct e1000_adapter *adapter); |
482 | extern void e1000e_power_up_phy(struct e1000_adapter *adapter); | 482 | void e1000e_power_up_phy(struct e1000_adapter *adapter); |
483 | extern int e1000e_setup_rx_resources(struct e1000_ring *ring); | 483 | int e1000e_setup_rx_resources(struct e1000_ring *ring); |
484 | extern int e1000e_setup_tx_resources(struct e1000_ring *ring); | 484 | int e1000e_setup_tx_resources(struct e1000_ring *ring); |
485 | extern void e1000e_free_rx_resources(struct e1000_ring *ring); | 485 | void e1000e_free_rx_resources(struct e1000_ring *ring); |
486 | extern void e1000e_free_tx_resources(struct e1000_ring *ring); | 486 | void e1000e_free_tx_resources(struct e1000_ring *ring); |
487 | extern struct rtnl_link_stats64 *e1000e_get_stats64(struct net_device *netdev, | 487 | struct rtnl_link_stats64 *e1000e_get_stats64(struct net_device *netdev, |
488 | struct rtnl_link_stats64 | 488 | struct rtnl_link_stats64 *stats); |
489 | *stats); | 489 | void e1000e_set_interrupt_capability(struct e1000_adapter *adapter); |
490 | extern void e1000e_set_interrupt_capability(struct e1000_adapter *adapter); | 490 | void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter); |
491 | extern void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter); | 491 | void e1000e_get_hw_control(struct e1000_adapter *adapter); |
492 | extern void e1000e_get_hw_control(struct e1000_adapter *adapter); | 492 | void e1000e_release_hw_control(struct e1000_adapter *adapter); |
493 | extern void e1000e_release_hw_control(struct e1000_adapter *adapter); | 493 | void e1000e_write_itr(struct e1000_adapter *adapter, u32 itr); |
494 | extern void e1000e_write_itr(struct e1000_adapter *adapter, u32 itr); | ||
495 | 494 | ||
496 | extern unsigned int copybreak; | 495 | extern unsigned int copybreak; |
497 | 496 | ||
@@ -508,8 +507,8 @@ extern const struct e1000_info e1000_pch2_info; | |||
508 | extern const struct e1000_info e1000_pch_lpt_info; | 507 | extern const struct e1000_info e1000_pch_lpt_info; |
509 | extern const struct e1000_info e1000_es2_info; | 508 | extern const struct e1000_info e1000_es2_info; |
510 | 509 | ||
511 | extern void e1000e_ptp_init(struct e1000_adapter *adapter); | 510 | void e1000e_ptp_init(struct e1000_adapter *adapter); |
512 | extern void e1000e_ptp_remove(struct e1000_adapter *adapter); | 511 | void e1000e_ptp_remove(struct e1000_adapter *adapter); |
513 | 512 | ||
514 | static inline s32 e1000_phy_hw_reset(struct e1000_hw *hw) | 513 | static inline s32 e1000_phy_hw_reset(struct e1000_hw *hw) |
515 | { | 514 | { |
@@ -536,7 +535,7 @@ static inline s32 e1e_wphy_locked(struct e1000_hw *hw, u32 offset, u16 data) | |||
536 | return hw->phy.ops.write_reg_locked(hw, offset, data); | 535 | return hw->phy.ops.write_reg_locked(hw, offset, data); |
537 | } | 536 | } |
538 | 537 | ||
539 | extern void e1000e_reload_nvm_generic(struct e1000_hw *hw); | 538 | void e1000e_reload_nvm_generic(struct e1000_hw *hw); |
540 | 539 | ||
541 | static inline s32 e1000e_read_mac_addr(struct e1000_hw *hw) | 540 | static inline s32 e1000e_read_mac_addr(struct e1000_hw *hw) |
542 | { | 541 | { |
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.h b/drivers/net/ethernet/intel/igb/e1000_82575.h index 74a1506b4235..8c2437722aad 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.h +++ b/drivers/net/ethernet/intel/igb/e1000_82575.h | |||
@@ -28,14 +28,14 @@ | |||
28 | #ifndef _E1000_82575_H_ | 28 | #ifndef _E1000_82575_H_ |
29 | #define _E1000_82575_H_ | 29 | #define _E1000_82575_H_ |
30 | 30 | ||
31 | extern void igb_shutdown_serdes_link_82575(struct e1000_hw *hw); | 31 | void igb_shutdown_serdes_link_82575(struct e1000_hw *hw); |
32 | extern void igb_power_up_serdes_link_82575(struct e1000_hw *hw); | 32 | void igb_power_up_serdes_link_82575(struct e1000_hw *hw); |
33 | extern void igb_power_down_phy_copper_82575(struct e1000_hw *hw); | 33 | void igb_power_down_phy_copper_82575(struct e1000_hw *hw); |
34 | extern void igb_rx_fifo_flush_82575(struct e1000_hw *hw); | 34 | void igb_rx_fifo_flush_82575(struct e1000_hw *hw); |
35 | extern s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, | 35 | s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr, |
36 | u8 dev_addr, u8 *data); | 36 | u8 *data); |
37 | extern s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, | 37 | s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr, |
38 | u8 dev_addr, u8 data); | 38 | u8 data); |
39 | 39 | ||
40 | #define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \ | 40 | #define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \ |
41 | (ID_LED_DEF1_DEF2 << 8) | \ | 41 | (ID_LED_DEF1_DEF2 << 8) | \ |
diff --git a/drivers/net/ethernet/intel/igb/e1000_hw.h b/drivers/net/ethernet/intel/igb/e1000_hw.h index 37a9c06a6c68..2e166b22d52b 100644 --- a/drivers/net/ethernet/intel/igb/e1000_hw.h +++ b/drivers/net/ethernet/intel/igb/e1000_hw.h | |||
@@ -562,11 +562,11 @@ struct e1000_hw { | |||
562 | u8 revision_id; | 562 | u8 revision_id; |
563 | }; | 563 | }; |
564 | 564 | ||
565 | extern struct net_device *igb_get_hw_dev(struct e1000_hw *hw); | 565 | struct net_device *igb_get_hw_dev(struct e1000_hw *hw); |
566 | #define hw_dbg(format, arg...) \ | 566 | #define hw_dbg(format, arg...) \ |
567 | netdev_dbg(igb_get_hw_dev(hw), format, ##arg) | 567 | netdev_dbg(igb_get_hw_dev(hw), format, ##arg) |
568 | 568 | ||
569 | /* These functions must be implemented by drivers */ | 569 | /* These functions must be implemented by drivers */ |
570 | s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); | 570 | s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); |
571 | s32 igb_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); | 571 | s32 igb_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value); |
572 | #endif /* _E1000_HW_H_ */ | 572 | #endif /* _E1000_HW_H_ */ |
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.h b/drivers/net/ethernet/intel/igb/e1000_i210.h index dde3c4b7ea99..2d913716573a 100644 --- a/drivers/net/ethernet/intel/igb/e1000_i210.h +++ b/drivers/net/ethernet/intel/igb/e1000_i210.h | |||
@@ -28,26 +28,24 @@ | |||
28 | #ifndef _E1000_I210_H_ | 28 | #ifndef _E1000_I210_H_ |
29 | #define _E1000_I210_H_ | 29 | #define _E1000_I210_H_ |
30 | 30 | ||
31 | extern s32 igb_update_flash_i210(struct e1000_hw *hw); | 31 | s32 igb_update_flash_i210(struct e1000_hw *hw); |
32 | extern s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); | 32 | s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); |
33 | extern s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); | 33 | s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); |
34 | extern s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, | 34 | s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, |
35 | u16 words, u16 *data); | 35 | u16 *data); |
36 | extern s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, | 36 | s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, |
37 | u16 words, u16 *data); | 37 | u16 *data); |
38 | extern s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | 38 | s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); |
39 | extern void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | 39 | void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); |
40 | extern s32 igb_acquire_nvm_i210(struct e1000_hw *hw); | 40 | s32 igb_acquire_nvm_i210(struct e1000_hw *hw); |
41 | extern void igb_release_nvm_i210(struct e1000_hw *hw); | 41 | void igb_release_nvm_i210(struct e1000_hw *hw); |
42 | extern s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); | 42 | s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); |
43 | extern s32 igb_read_invm_version(struct e1000_hw *hw, | 43 | s32 igb_read_invm_version(struct e1000_hw *hw, |
44 | struct e1000_fw_version *invm_ver); | 44 | struct e1000_fw_version *invm_ver); |
45 | extern s32 igb_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, | 45 | s32 igb_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 *data); |
46 | u16 *data); | 46 | s32 igb_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 data); |
47 | extern s32 igb_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, | 47 | s32 igb_init_nvm_params_i210(struct e1000_hw *hw); |
48 | u16 data); | 48 | bool igb_get_flash_presence_i210(struct e1000_hw *hw); |
49 | extern s32 igb_init_nvm_params_i210(struct e1000_hw *hw); | ||
50 | extern bool igb_get_flash_presence_i210(struct e1000_hw *hw); | ||
51 | 49 | ||
52 | #define E1000_STM_OPCODE 0xDB00 | 50 | #define E1000_STM_OPCODE 0xDB00 |
53 | #define E1000_EEPROM_FLASH_SIZE_WORD 0x11 | 51 | #define E1000_EEPROM_FLASH_SIZE_WORD 0x11 |
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.h b/drivers/net/ethernet/intel/igb/e1000_mac.h index 5e13e83cc608..e4cbe8ef67b3 100644 --- a/drivers/net/ethernet/intel/igb/e1000_mac.h +++ b/drivers/net/ethernet/intel/igb/e1000_mac.h | |||
@@ -86,6 +86,6 @@ enum e1000_mng_mode { | |||
86 | 86 | ||
87 | #define E1000_MNG_DHCP_COOKIE_STATUS_VLAN 0x2 | 87 | #define E1000_MNG_DHCP_COOKIE_STATUS_VLAN 0x2 |
88 | 88 | ||
89 | extern void e1000_init_function_pointers_82575(struct e1000_hw *hw); | 89 | void e1000_init_function_pointers_82575(struct e1000_hw *hw); |
90 | 90 | ||
91 | #endif | 91 | #endif |
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index 6807b098edae..cdaa2bcefc4c 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h | |||
@@ -483,40 +483,37 @@ enum igb_boards { | |||
483 | extern char igb_driver_name[]; | 483 | extern char igb_driver_name[]; |
484 | extern char igb_driver_version[]; | 484 | extern char igb_driver_version[]; |
485 | 485 | ||
486 | extern int igb_up(struct igb_adapter *); | 486 | int igb_up(struct igb_adapter *); |
487 | extern void igb_down(struct igb_adapter *); | 487 | void igb_down(struct igb_adapter *); |
488 | extern void igb_reinit_locked(struct igb_adapter *); | 488 | void igb_reinit_locked(struct igb_adapter *); |
489 | extern void igb_reset(struct igb_adapter *); | 489 | void igb_reset(struct igb_adapter *); |
490 | extern void igb_write_rss_indir_tbl(struct igb_adapter *); | 490 | void igb_write_rss_indir_tbl(struct igb_adapter *); |
491 | extern int igb_set_spd_dplx(struct igb_adapter *, u32, u8); | 491 | int igb_set_spd_dplx(struct igb_adapter *, u32, u8); |
492 | extern int igb_setup_tx_resources(struct igb_ring *); | 492 | int igb_setup_tx_resources(struct igb_ring *); |
493 | extern int igb_setup_rx_resources(struct igb_ring *); | 493 | int igb_setup_rx_resources(struct igb_ring *); |
494 | extern void igb_free_tx_resources(struct igb_ring *); | 494 | void igb_free_tx_resources(struct igb_ring *); |
495 | extern void igb_free_rx_resources(struct igb_ring *); | 495 | void igb_free_rx_resources(struct igb_ring *); |
496 | extern void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *); | 496 | void igb_configure_tx_ring(struct igb_adapter *, struct igb_ring *); |
497 | extern void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *); | 497 | void igb_configure_rx_ring(struct igb_adapter *, struct igb_ring *); |
498 | extern void igb_setup_tctl(struct igb_adapter *); | 498 | void igb_setup_tctl(struct igb_adapter *); |
499 | extern void igb_setup_rctl(struct igb_adapter *); | 499 | void igb_setup_rctl(struct igb_adapter *); |
500 | extern netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); | 500 | netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); |
501 | extern void igb_unmap_and_free_tx_resource(struct igb_ring *, | 501 | void igb_unmap_and_free_tx_resource(struct igb_ring *, struct igb_tx_buffer *); |
502 | struct igb_tx_buffer *); | 502 | void igb_alloc_rx_buffers(struct igb_ring *, u16); |
503 | extern void igb_alloc_rx_buffers(struct igb_ring *, u16); | 503 | void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); |
504 | extern void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); | 504 | bool igb_has_link(struct igb_adapter *adapter); |
505 | extern bool igb_has_link(struct igb_adapter *adapter); | 505 | void igb_set_ethtool_ops(struct net_device *); |
506 | extern void igb_set_ethtool_ops(struct net_device *); | 506 | void igb_power_up_link(struct igb_adapter *); |
507 | extern void igb_power_up_link(struct igb_adapter *); | 507 | void igb_set_fw_version(struct igb_adapter *); |
508 | extern void igb_set_fw_version(struct igb_adapter *); | 508 | void igb_ptp_init(struct igb_adapter *adapter); |
509 | extern void igb_ptp_init(struct igb_adapter *adapter); | 509 | void igb_ptp_stop(struct igb_adapter *adapter); |
510 | extern void igb_ptp_stop(struct igb_adapter *adapter); | 510 | void igb_ptp_reset(struct igb_adapter *adapter); |
511 | extern void igb_ptp_reset(struct igb_adapter *adapter); | 511 | void igb_ptp_tx_work(struct work_struct *work); |
512 | extern void igb_ptp_tx_work(struct work_struct *work); | 512 | void igb_ptp_rx_hang(struct igb_adapter *adapter); |
513 | extern void igb_ptp_rx_hang(struct igb_adapter *adapter); | 513 | void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); |
514 | extern void igb_ptp_tx_hwtstamp(struct igb_adapter *adapter); | 514 | void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, struct sk_buff *skb); |
515 | extern void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector, | 515 | void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, unsigned char *va, |
516 | struct sk_buff *skb); | 516 | struct sk_buff *skb); |
517 | extern void igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, | ||
518 | unsigned char *va, | ||
519 | struct sk_buff *skb); | ||
520 | static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, | 517 | static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, |
521 | union e1000_adv_rx_desc *rx_desc, | 518 | union e1000_adv_rx_desc *rx_desc, |
522 | struct sk_buff *skb) | 519 | struct sk_buff *skb) |
@@ -531,11 +528,11 @@ static inline void igb_ptp_rx_hwtstamp(struct igb_ring *rx_ring, | |||
531 | rx_ring->last_rx_timestamp = jiffies; | 528 | rx_ring->last_rx_timestamp = jiffies; |
532 | } | 529 | } |
533 | 530 | ||
534 | extern int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, | 531 | int igb_ptp_hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr, |
535 | struct ifreq *ifr, int cmd); | 532 | int cmd); |
536 | #ifdef CONFIG_IGB_HWMON | 533 | #ifdef CONFIG_IGB_HWMON |
537 | extern void igb_sysfs_exit(struct igb_adapter *adapter); | 534 | void igb_sysfs_exit(struct igb_adapter *adapter); |
538 | extern int igb_sysfs_init(struct igb_adapter *adapter); | 535 | int igb_sysfs_init(struct igb_adapter *adapter); |
539 | #endif | 536 | #endif |
540 | static inline s32 igb_reset_phy(struct e1000_hw *hw) | 537 | static inline s32 igb_reset_phy(struct e1000_hw *hw) |
541 | { | 538 | { |
diff --git a/drivers/net/ethernet/intel/igbvf/igbvf.h b/drivers/net/ethernet/intel/igbvf/igbvf.h index a1463e3d14c0..7d6a25c8f889 100644 --- a/drivers/net/ethernet/intel/igbvf/igbvf.h +++ b/drivers/net/ethernet/intel/igbvf/igbvf.h | |||
@@ -312,17 +312,17 @@ enum igbvf_state_t { | |||
312 | extern char igbvf_driver_name[]; | 312 | extern char igbvf_driver_name[]; |
313 | extern const char igbvf_driver_version[]; | 313 | extern const char igbvf_driver_version[]; |
314 | 314 | ||
315 | extern void igbvf_check_options(struct igbvf_adapter *); | 315 | void igbvf_check_options(struct igbvf_adapter *); |
316 | extern void igbvf_set_ethtool_ops(struct net_device *); | 316 | void igbvf_set_ethtool_ops(struct net_device *); |
317 | 317 | ||
318 | extern int igbvf_up(struct igbvf_adapter *); | 318 | int igbvf_up(struct igbvf_adapter *); |
319 | extern void igbvf_down(struct igbvf_adapter *); | 319 | void igbvf_down(struct igbvf_adapter *); |
320 | extern void igbvf_reinit_locked(struct igbvf_adapter *); | 320 | void igbvf_reinit_locked(struct igbvf_adapter *); |
321 | extern int igbvf_setup_rx_resources(struct igbvf_adapter *, struct igbvf_ring *); | 321 | int igbvf_setup_rx_resources(struct igbvf_adapter *, struct igbvf_ring *); |
322 | extern int igbvf_setup_tx_resources(struct igbvf_adapter *, struct igbvf_ring *); | 322 | int igbvf_setup_tx_resources(struct igbvf_adapter *, struct igbvf_ring *); |
323 | extern void igbvf_free_rx_resources(struct igbvf_ring *); | 323 | void igbvf_free_rx_resources(struct igbvf_ring *); |
324 | extern void igbvf_free_tx_resources(struct igbvf_ring *); | 324 | void igbvf_free_tx_resources(struct igbvf_ring *); |
325 | extern void igbvf_update_stats(struct igbvf_adapter *); | 325 | void igbvf_update_stats(struct igbvf_adapter *); |
326 | 326 | ||
327 | extern unsigned int copybreak; | 327 | extern unsigned int copybreak; |
328 | 328 | ||
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb.h b/drivers/net/ethernet/intel/ixgb/ixgb.h index 4d2ae97ff1b3..2224cc2edf13 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb.h +++ b/drivers/net/ethernet/intel/ixgb/ixgb.h | |||
@@ -187,21 +187,21 @@ enum ixgb_state_t { | |||
187 | }; | 187 | }; |
188 | 188 | ||
189 | /* Exported from other modules */ | 189 | /* Exported from other modules */ |
190 | extern void ixgb_check_options(struct ixgb_adapter *adapter); | 190 | void ixgb_check_options(struct ixgb_adapter *adapter); |
191 | extern void ixgb_set_ethtool_ops(struct net_device *netdev); | 191 | void ixgb_set_ethtool_ops(struct net_device *netdev); |
192 | extern char ixgb_driver_name[]; | 192 | extern char ixgb_driver_name[]; |
193 | extern const char ixgb_driver_version[]; | 193 | extern const char ixgb_driver_version[]; |
194 | 194 | ||
195 | extern void ixgb_set_speed_duplex(struct net_device *netdev); | 195 | void ixgb_set_speed_duplex(struct net_device *netdev); |
196 | 196 | ||
197 | extern int ixgb_up(struct ixgb_adapter *adapter); | 197 | int ixgb_up(struct ixgb_adapter *adapter); |
198 | extern void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog); | 198 | void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog); |
199 | extern void ixgb_reset(struct ixgb_adapter *adapter); | 199 | void ixgb_reset(struct ixgb_adapter *adapter); |
200 | extern int ixgb_setup_rx_resources(struct ixgb_adapter *adapter); | 200 | int ixgb_setup_rx_resources(struct ixgb_adapter *adapter); |
201 | extern int ixgb_setup_tx_resources(struct ixgb_adapter *adapter); | 201 | int ixgb_setup_tx_resources(struct ixgb_adapter *adapter); |
202 | extern void ixgb_free_rx_resources(struct ixgb_adapter *adapter); | 202 | void ixgb_free_rx_resources(struct ixgb_adapter *adapter); |
203 | extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter); | 203 | void ixgb_free_tx_resources(struct ixgb_adapter *adapter); |
204 | extern void ixgb_update_stats(struct ixgb_adapter *adapter); | 204 | void ixgb_update_stats(struct ixgb_adapter *adapter); |
205 | 205 | ||
206 | 206 | ||
207 | #endif /* _IXGB_H_ */ | 207 | #endif /* _IXGB_H_ */ |
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_hw.h b/drivers/net/ethernet/intel/ixgb/ixgb_hw.h index 2a99a35c33aa..0bd5d72e1af5 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_hw.h +++ b/drivers/net/ethernet/intel/ixgb/ixgb_hw.h | |||
@@ -759,27 +759,20 @@ struct ixgb_hw_stats { | |||
759 | }; | 759 | }; |
760 | 760 | ||
761 | /* Function Prototypes */ | 761 | /* Function Prototypes */ |
762 | extern bool ixgb_adapter_stop(struct ixgb_hw *hw); | 762 | bool ixgb_adapter_stop(struct ixgb_hw *hw); |
763 | extern bool ixgb_init_hw(struct ixgb_hw *hw); | 763 | bool ixgb_init_hw(struct ixgb_hw *hw); |
764 | extern bool ixgb_adapter_start(struct ixgb_hw *hw); | 764 | bool ixgb_adapter_start(struct ixgb_hw *hw); |
765 | extern void ixgb_check_for_link(struct ixgb_hw *hw); | 765 | void ixgb_check_for_link(struct ixgb_hw *hw); |
766 | extern bool ixgb_check_for_bad_link(struct ixgb_hw *hw); | 766 | bool ixgb_check_for_bad_link(struct ixgb_hw *hw); |
767 | |||
768 | extern void ixgb_rar_set(struct ixgb_hw *hw, | ||
769 | u8 *addr, | ||
770 | u32 index); | ||
771 | 767 | ||
768 | void ixgb_rar_set(struct ixgb_hw *hw, u8 *addr, u32 index); | ||
772 | 769 | ||
773 | /* Filters (multicast, vlan, receive) */ | 770 | /* Filters (multicast, vlan, receive) */ |
774 | extern void ixgb_mc_addr_list_update(struct ixgb_hw *hw, | 771 | void ixgb_mc_addr_list_update(struct ixgb_hw *hw, u8 *mc_addr_list, |
775 | u8 *mc_addr_list, | 772 | u32 mc_addr_count, u32 pad); |
776 | u32 mc_addr_count, | ||
777 | u32 pad); | ||
778 | 773 | ||
779 | /* Vfta functions */ | 774 | /* Vfta functions */ |
780 | extern void ixgb_write_vfta(struct ixgb_hw *hw, | 775 | void ixgb_write_vfta(struct ixgb_hw *hw, u32 offset, u32 value); |
781 | u32 offset, | ||
782 | u32 value); | ||
783 | 776 | ||
784 | /* Access functions to eeprom data */ | 777 | /* Access functions to eeprom data */ |
785 | void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, u8 *mac_addr); | 778 | void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, u8 *mac_addr); |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index 0ac6b11c6e4e..3637841daea4 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h | |||
@@ -786,93 +786,89 @@ extern const char ixgbe_driver_version[]; | |||
786 | extern char ixgbe_default_device_descr[]; | 786 | extern char ixgbe_default_device_descr[]; |
787 | #endif /* IXGBE_FCOE */ | 787 | #endif /* IXGBE_FCOE */ |
788 | 788 | ||
789 | extern void ixgbe_up(struct ixgbe_adapter *adapter); | 789 | void ixgbe_up(struct ixgbe_adapter *adapter); |
790 | extern void ixgbe_down(struct ixgbe_adapter *adapter); | 790 | void ixgbe_down(struct ixgbe_adapter *adapter); |
791 | extern void ixgbe_reinit_locked(struct ixgbe_adapter *adapter); | 791 | void ixgbe_reinit_locked(struct ixgbe_adapter *adapter); |
792 | extern void ixgbe_reset(struct ixgbe_adapter *adapter); | 792 | void ixgbe_reset(struct ixgbe_adapter *adapter); |
793 | extern void ixgbe_set_ethtool_ops(struct net_device *netdev); | 793 | void ixgbe_set_ethtool_ops(struct net_device *netdev); |
794 | extern int ixgbe_setup_rx_resources(struct ixgbe_ring *); | 794 | int ixgbe_setup_rx_resources(struct ixgbe_ring *); |
795 | extern int ixgbe_setup_tx_resources(struct ixgbe_ring *); | 795 | int ixgbe_setup_tx_resources(struct ixgbe_ring *); |
796 | extern void ixgbe_free_rx_resources(struct ixgbe_ring *); | 796 | void ixgbe_free_rx_resources(struct ixgbe_ring *); |
797 | extern void ixgbe_free_tx_resources(struct ixgbe_ring *); | 797 | void ixgbe_free_tx_resources(struct ixgbe_ring *); |
798 | extern void ixgbe_configure_rx_ring(struct ixgbe_adapter *,struct ixgbe_ring *); | 798 | void ixgbe_configure_rx_ring(struct ixgbe_adapter *, struct ixgbe_ring *); |
799 | extern void ixgbe_configure_tx_ring(struct ixgbe_adapter *,struct ixgbe_ring *); | 799 | void ixgbe_configure_tx_ring(struct ixgbe_adapter *, struct ixgbe_ring *); |
800 | extern void ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, | 800 | void ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, struct ixgbe_ring *); |
801 | struct ixgbe_ring *); | 801 | void ixgbe_update_stats(struct ixgbe_adapter *adapter); |
802 | extern void ixgbe_update_stats(struct ixgbe_adapter *adapter); | 802 | int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); |
803 | extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); | 803 | int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id, |
804 | extern int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id, | ||
805 | u16 subdevice_id); | 804 | u16 subdevice_id); |
806 | extern void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter); | 805 | void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter); |
807 | extern netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *, | 806 | netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *, struct ixgbe_adapter *, |
808 | struct ixgbe_adapter *, | 807 | struct ixgbe_ring *); |
809 | struct ixgbe_ring *); | 808 | void ixgbe_unmap_and_free_tx_resource(struct ixgbe_ring *, |
810 | extern void ixgbe_unmap_and_free_tx_resource(struct ixgbe_ring *, | 809 | struct ixgbe_tx_buffer *); |
811 | struct ixgbe_tx_buffer *); | 810 | void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16); |
812 | extern void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16); | 811 | void ixgbe_write_eitr(struct ixgbe_q_vector *); |
813 | extern void ixgbe_write_eitr(struct ixgbe_q_vector *); | 812 | int ixgbe_poll(struct napi_struct *napi, int budget); |
814 | extern int ixgbe_poll(struct napi_struct *napi, int budget); | 813 | int ethtool_ioctl(struct ifreq *ifr); |
815 | extern int ethtool_ioctl(struct ifreq *ifr); | 814 | s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw); |
816 | extern s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw); | 815 | s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 fdirctrl); |
817 | extern s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 fdirctrl); | 816 | s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl); |
818 | extern s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl); | 817 | s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw, |
819 | extern s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw, | 818 | union ixgbe_atr_hash_dword input, |
820 | union ixgbe_atr_hash_dword input, | 819 | union ixgbe_atr_hash_dword common, |
821 | union ixgbe_atr_hash_dword common, | 820 | u8 queue); |
822 | u8 queue); | 821 | s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw, |
823 | extern s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw, | 822 | union ixgbe_atr_input *input_mask); |
824 | union ixgbe_atr_input *input_mask); | 823 | s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw, |
825 | extern s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw, | 824 | union ixgbe_atr_input *input, |
826 | union ixgbe_atr_input *input, | 825 | u16 soft_id, u8 queue); |
827 | u16 soft_id, u8 queue); | 826 | s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw, |
828 | extern s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw, | 827 | union ixgbe_atr_input *input, |
829 | union ixgbe_atr_input *input, | 828 | u16 soft_id); |
830 | u16 soft_id); | 829 | void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input, |
831 | extern void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input, | 830 | union ixgbe_atr_input *mask); |
832 | union ixgbe_atr_input *mask); | 831 | bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw); |
833 | extern bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw); | 832 | void ixgbe_set_rx_mode(struct net_device *netdev); |
834 | extern void ixgbe_set_rx_mode(struct net_device *netdev); | ||
835 | #ifdef CONFIG_IXGBE_DCB | 833 | #ifdef CONFIG_IXGBE_DCB |
836 | extern void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter); | 834 | void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter); |
837 | #endif | 835 | #endif |
838 | extern int ixgbe_setup_tc(struct net_device *dev, u8 tc); | 836 | int ixgbe_setup_tc(struct net_device *dev, u8 tc); |
839 | extern void ixgbe_tx_ctxtdesc(struct ixgbe_ring *, u32, u32, u32, u32); | 837 | void ixgbe_tx_ctxtdesc(struct ixgbe_ring *, u32, u32, u32, u32); |
840 | extern void ixgbe_do_reset(struct net_device *netdev); | 838 | void ixgbe_do_reset(struct net_device *netdev); |
841 | #ifdef CONFIG_IXGBE_HWMON | 839 | #ifdef CONFIG_IXGBE_HWMON |
842 | extern void ixgbe_sysfs_exit(struct ixgbe_adapter *adapter); | 840 | void ixgbe_sysfs_exit(struct ixgbe_adapter *adapter); |
843 | extern int ixgbe_sysfs_init(struct ixgbe_adapter *adapter); | 841 | int ixgbe_sysfs_init(struct ixgbe_adapter *adapter); |
844 | #endif /* CONFIG_IXGBE_HWMON */ | 842 | #endif /* CONFIG_IXGBE_HWMON */ |
845 | #ifdef IXGBE_FCOE | 843 | #ifdef IXGBE_FCOE |
846 | extern void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter); | 844 | void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter); |
847 | extern int ixgbe_fso(struct ixgbe_ring *tx_ring, | 845 | int ixgbe_fso(struct ixgbe_ring *tx_ring, struct ixgbe_tx_buffer *first, |
848 | struct ixgbe_tx_buffer *first, | 846 | u8 *hdr_len); |
849 | u8 *hdr_len); | 847 | int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter, |
850 | extern int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter, | 848 | union ixgbe_adv_rx_desc *rx_desc, struct sk_buff *skb); |
851 | union ixgbe_adv_rx_desc *rx_desc, | 849 | int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, |
852 | struct sk_buff *skb); | 850 | struct scatterlist *sgl, unsigned int sgc); |
853 | extern int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, | 851 | int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, |
854 | struct scatterlist *sgl, unsigned int sgc); | 852 | struct scatterlist *sgl, unsigned int sgc); |
855 | extern int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, | 853 | int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid); |
856 | struct scatterlist *sgl, unsigned int sgc); | 854 | int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter); |
857 | extern int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid); | 855 | void ixgbe_free_fcoe_ddp_resources(struct ixgbe_adapter *adapter); |
858 | extern int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter); | 856 | int ixgbe_fcoe_enable(struct net_device *netdev); |
859 | extern void ixgbe_free_fcoe_ddp_resources(struct ixgbe_adapter *adapter); | 857 | int ixgbe_fcoe_disable(struct net_device *netdev); |
860 | extern int ixgbe_fcoe_enable(struct net_device *netdev); | ||
861 | extern int ixgbe_fcoe_disable(struct net_device *netdev); | ||
862 | #ifdef CONFIG_IXGBE_DCB | 858 | #ifdef CONFIG_IXGBE_DCB |
863 | extern u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter); | 859 | u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter); |
864 | extern u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up); | 860 | u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up); |
865 | #endif /* CONFIG_IXGBE_DCB */ | 861 | #endif /* CONFIG_IXGBE_DCB */ |
866 | extern int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); | 862 | int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); |
867 | extern int ixgbe_fcoe_get_hbainfo(struct net_device *netdev, | 863 | int ixgbe_fcoe_get_hbainfo(struct net_device *netdev, |
868 | struct netdev_fcoe_hbainfo *info); | 864 | struct netdev_fcoe_hbainfo *info); |
869 | extern u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter); | 865 | u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter); |
870 | #endif /* IXGBE_FCOE */ | 866 | #endif /* IXGBE_FCOE */ |
871 | #ifdef CONFIG_DEBUG_FS | 867 | #ifdef CONFIG_DEBUG_FS |
872 | extern void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter); | 868 | void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter); |
873 | extern void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter); | 869 | void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter); |
874 | extern void ixgbe_dbg_init(void); | 870 | void ixgbe_dbg_init(void); |
875 | extern void ixgbe_dbg_exit(void); | 871 | void ixgbe_dbg_exit(void); |
876 | #else | 872 | #else |
877 | static inline void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter) {} | 873 | static inline void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter) {} |
878 | static inline void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter) {} | 874 | static inline void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter) {} |
@@ -884,12 +880,12 @@ static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring) | |||
884 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); | 880 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); |
885 | } | 881 | } |
886 | 882 | ||
887 | extern void ixgbe_ptp_init(struct ixgbe_adapter *adapter); | 883 | void ixgbe_ptp_init(struct ixgbe_adapter *adapter); |
888 | extern void ixgbe_ptp_stop(struct ixgbe_adapter *adapter); | 884 | void ixgbe_ptp_stop(struct ixgbe_adapter *adapter); |
889 | extern void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter); | 885 | void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter); |
890 | extern void ixgbe_ptp_rx_hang(struct ixgbe_adapter *adapter); | 886 | void ixgbe_ptp_rx_hang(struct ixgbe_adapter *adapter); |
891 | extern void __ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector, | 887 | void __ixgbe_ptp_rx_hwtstamp(struct ixgbe_q_vector *q_vector, |
892 | struct sk_buff *skb); | 888 | struct sk_buff *skb); |
893 | static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring, | 889 | static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring, |
894 | union ixgbe_adv_rx_desc *rx_desc, | 890 | union ixgbe_adv_rx_desc *rx_desc, |
895 | struct sk_buff *skb) | 891 | struct sk_buff *skb) |
@@ -906,11 +902,11 @@ static inline void ixgbe_ptp_rx_hwtstamp(struct ixgbe_ring *rx_ring, | |||
906 | rx_ring->last_rx_timestamp = jiffies; | 902 | rx_ring->last_rx_timestamp = jiffies; |
907 | } | 903 | } |
908 | 904 | ||
909 | extern int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, | 905 | int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter, struct ifreq *ifr, |
910 | struct ifreq *ifr, int cmd); | 906 | int cmd); |
911 | extern void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter); | 907 | void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter); |
912 | extern void ixgbe_ptp_reset(struct ixgbe_adapter *adapter); | 908 | void ixgbe_ptp_reset(struct ixgbe_adapter *adapter); |
913 | extern void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr); | 909 | void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr); |
914 | #ifdef CONFIG_PCI_IOV | 910 | #ifdef CONFIG_PCI_IOV |
915 | void ixgbe_sriov_reinit(struct ixgbe_adapter *adapter); | 911 | void ixgbe_sriov_reinit(struct ixgbe_adapter *adapter); |
916 | #endif | 912 | #endif |
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h index fff0d9867529..64a2b912e73c 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | |||
@@ -281,27 +281,23 @@ extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops; | |||
281 | extern const char ixgbevf_driver_name[]; | 281 | extern const char ixgbevf_driver_name[]; |
282 | extern const char ixgbevf_driver_version[]; | 282 | extern const char ixgbevf_driver_version[]; |
283 | 283 | ||
284 | extern void ixgbevf_up(struct ixgbevf_adapter *adapter); | 284 | void ixgbevf_up(struct ixgbevf_adapter *adapter); |
285 | extern void ixgbevf_down(struct ixgbevf_adapter *adapter); | 285 | void ixgbevf_down(struct ixgbevf_adapter *adapter); |
286 | extern void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter); | 286 | void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter); |
287 | extern void ixgbevf_reset(struct ixgbevf_adapter *adapter); | 287 | void ixgbevf_reset(struct ixgbevf_adapter *adapter); |
288 | extern void ixgbevf_set_ethtool_ops(struct net_device *netdev); | 288 | void ixgbevf_set_ethtool_ops(struct net_device *netdev); |
289 | extern int ixgbevf_setup_rx_resources(struct ixgbevf_adapter *, | 289 | int ixgbevf_setup_rx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *); |
290 | struct ixgbevf_ring *); | 290 | int ixgbevf_setup_tx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *); |
291 | extern int ixgbevf_setup_tx_resources(struct ixgbevf_adapter *, | 291 | void ixgbevf_free_rx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *); |
292 | struct ixgbevf_ring *); | 292 | void ixgbevf_free_tx_resources(struct ixgbevf_adapter *, struct ixgbevf_ring *); |
293 | extern void ixgbevf_free_rx_resources(struct ixgbevf_adapter *, | 293 | void ixgbevf_update_stats(struct ixgbevf_adapter *adapter); |
294 | struct ixgbevf_ring *); | 294 | int ethtool_ioctl(struct ifreq *ifr); |
295 | extern void ixgbevf_free_tx_resources(struct ixgbevf_adapter *, | 295 | |
296 | struct ixgbevf_ring *); | 296 | void ixgbe_napi_add_all(struct ixgbevf_adapter *adapter); |
297 | extern void ixgbevf_update_stats(struct ixgbevf_adapter *adapter); | 297 | void ixgbe_napi_del_all(struct ixgbevf_adapter *adapter); |
298 | extern int ethtool_ioctl(struct ifreq *ifr); | ||
299 | |||
300 | extern void ixgbe_napi_add_all(struct ixgbevf_adapter *adapter); | ||
301 | extern void ixgbe_napi_del_all(struct ixgbevf_adapter *adapter); | ||
302 | 298 | ||
303 | #ifdef DEBUG | 299 | #ifdef DEBUG |
304 | extern char *ixgbevf_get_hw_dev_name(struct ixgbe_hw *hw); | 300 | char *ixgbevf_get_hw_dev_name(struct ixgbe_hw *hw); |
305 | #define hw_dbg(hw, format, arg...) \ | 301 | #define hw_dbg(hw, format, arg...) \ |
306 | printk(KERN_DEBUG "%s: " format, ixgbevf_get_hw_dev_name(hw), ##arg) | 302 | printk(KERN_DEBUG "%s: " format, ixgbevf_get_hw_dev_name(hw), ##arg) |
307 | #else | 303 | #else |