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/net/ethernet/intel/ixgbevf | |
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/net/ethernet/intel/ixgbevf')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 34 |
1 files changed, 15 insertions, 19 deletions
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 |