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

staging: octeon: Remove unnecessary externs

Using 'extern' is not necessary for function prototypes.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
b239904d a5ee4695

+12 -12
+1 -1
drivers/staging/octeon/ethernet-mdio.h
··· 25 25 26 26 extern const struct ethtool_ops cvm_oct_ethtool_ops; 27 27 28 - extern void octeon_mdiobus_force_mod_depencency(void); 28 + void octeon_mdiobus_force_mod_depencency(void); 29 29 30 30 int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 31 31 int cvm_oct_phy_setup_device(struct net_device *dev);
+11 -11
drivers/staging/octeon/octeon-ethernet.h
··· 53 53 54 54 int cvm_oct_free_work(void *work_queue_entry); 55 55 56 - extern int cvm_oct_rgmii_init(struct net_device *dev); 57 - extern void cvm_oct_rgmii_uninit(struct net_device *dev); 58 - extern int cvm_oct_rgmii_open(struct net_device *dev); 56 + int cvm_oct_rgmii_init(struct net_device *dev); 57 + void cvm_oct_rgmii_uninit(struct net_device *dev); 58 + int cvm_oct_rgmii_open(struct net_device *dev); 59 59 60 - extern int cvm_oct_sgmii_init(struct net_device *dev); 61 - extern int cvm_oct_sgmii_open(struct net_device *dev); 60 + int cvm_oct_sgmii_init(struct net_device *dev); 61 + int cvm_oct_sgmii_open(struct net_device *dev); 62 62 63 - extern int cvm_oct_spi_init(struct net_device *dev); 64 - extern void cvm_oct_spi_uninit(struct net_device *dev); 65 - extern int cvm_oct_xaui_init(struct net_device *dev); 66 - extern int cvm_oct_xaui_open(struct net_device *dev); 63 + int cvm_oct_spi_init(struct net_device *dev); 64 + void cvm_oct_spi_uninit(struct net_device *dev); 65 + int cvm_oct_xaui_init(struct net_device *dev); 66 + int cvm_oct_xaui_open(struct net_device *dev); 67 67 68 - extern int cvm_oct_common_init(struct net_device *dev); 69 - extern void cvm_oct_common_uninit(struct net_device *dev); 68 + int cvm_oct_common_init(struct net_device *dev); 69 + void cvm_oct_common_uninit(struct net_device *dev); 70 70 void cvm_oct_adjust_link(struct net_device *dev); 71 71 int cvm_oct_common_stop(struct net_device *dev); 72 72 int cvm_oct_common_open(struct net_device *dev,