Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

brocade: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
49ca19bd 1ee1725b

+21 -22
+21 -22
drivers/net/ethernet/brocade/bna/bnad.h
··· 372 372 /* 373 373 * EXTERN PROTOTYPES 374 374 */ 375 - extern u32 *cna_get_firmware_buf(struct pci_dev *pdev); 375 + u32 *cna_get_firmware_buf(struct pci_dev *pdev); 376 376 /* Netdev entry point prototypes */ 377 - extern void bnad_set_rx_mode(struct net_device *netdev); 378 - extern struct net_device_stats *bnad_get_netdev_stats( 379 - struct net_device *netdev); 380 - extern int bnad_mac_addr_set_locked(struct bnad *bnad, u8 *mac_addr); 381 - extern int bnad_enable_default_bcast(struct bnad *bnad); 382 - extern void bnad_restore_vlans(struct bnad *bnad, u32 rx_id); 383 - extern void bnad_set_ethtool_ops(struct net_device *netdev); 384 - extern void bnad_cb_completion(void *arg, enum bfa_status status); 377 + void bnad_set_rx_mode(struct net_device *netdev); 378 + struct net_device_stats *bnad_get_netdev_stats(struct net_device *netdev); 379 + int bnad_mac_addr_set_locked(struct bnad *bnad, u8 *mac_addr); 380 + int bnad_enable_default_bcast(struct bnad *bnad); 381 + void bnad_restore_vlans(struct bnad *bnad, u32 rx_id); 382 + void bnad_set_ethtool_ops(struct net_device *netdev); 383 + void bnad_cb_completion(void *arg, enum bfa_status status); 385 384 386 385 /* Configuration & setup */ 387 - extern void bnad_tx_coalescing_timeo_set(struct bnad *bnad); 388 - extern void bnad_rx_coalescing_timeo_set(struct bnad *bnad); 386 + void bnad_tx_coalescing_timeo_set(struct bnad *bnad); 387 + void bnad_rx_coalescing_timeo_set(struct bnad *bnad); 389 388 390 - extern int bnad_setup_rx(struct bnad *bnad, u32 rx_id); 391 - extern int bnad_setup_tx(struct bnad *bnad, u32 tx_id); 392 - extern void bnad_destroy_tx(struct bnad *bnad, u32 tx_id); 393 - extern void bnad_destroy_rx(struct bnad *bnad, u32 rx_id); 389 + int bnad_setup_rx(struct bnad *bnad, u32 rx_id); 390 + int bnad_setup_tx(struct bnad *bnad, u32 tx_id); 391 + void bnad_destroy_tx(struct bnad *bnad, u32 tx_id); 392 + void bnad_destroy_rx(struct bnad *bnad, u32 rx_id); 394 393 395 394 /* Timer start/stop protos */ 396 - extern void bnad_dim_timer_start(struct bnad *bnad); 395 + void bnad_dim_timer_start(struct bnad *bnad); 397 396 398 397 /* Statistics */ 399 - extern void bnad_netdev_qstats_fill(struct bnad *bnad, 400 - struct rtnl_link_stats64 *stats); 401 - extern void bnad_netdev_hwstats_fill(struct bnad *bnad, 402 - struct rtnl_link_stats64 *stats); 398 + void bnad_netdev_qstats_fill(struct bnad *bnad, 399 + struct rtnl_link_stats64 *stats); 400 + void bnad_netdev_hwstats_fill(struct bnad *bnad, 401 + struct rtnl_link_stats64 *stats); 403 402 404 403 /* Debugfs */ 405 - void bnad_debugfs_init(struct bnad *bnad); 406 - void bnad_debugfs_uninit(struct bnad *bnad); 404 + void bnad_debugfs_init(struct bnad *bnad); 405 + void bnad_debugfs_uninit(struct bnad *bnad); 407 406 408 407 /* MACROS */ 409 408 /* To set & get the stats counters */