]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: octeon: Remove extern from .c file
authorHelen Fornazier <helen.fornazier@gmail.com>
Thu, 26 Mar 2015 00:11:44 +0000 (21:11 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 09:40:32 +0000 (10:40 +0100)
This patch fixes the checkpatch.pl warning:

WARNING: externs should be avoided in .c files
+extern void octeon_mdiobus_force_mod_depencency(void);

Signed-off-by: Helen Fornazier <helen.fornazier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.h
drivers/staging/octeon/ethernet.c

index eccfcc54cea8e907c74c117903e982c7067c4691..6191b0850646062e47c205734e0b884277da42c6 100644 (file)
@@ -40,5 +40,8 @@
 #endif /* CONFIG_XFRM */
 
 extern const struct ethtool_ops cvm_oct_ethtool_ops;
+
+extern void octeon_mdiobus_force_mod_depencency(void);
+
 int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
 int cvm_oct_phy_setup_device(struct net_device *dev);
index 79f33349e93fa4be76da3173d2969d8085064c4d..f539d82f2f111683c76c0ed0c0e18a9dc58bfdec 100644 (file)
@@ -573,8 +573,6 @@ static const struct net_device_ops cvm_oct_pow_netdev_ops = {
 #endif
 };
 
-extern void octeon_mdiobus_force_mod_depencency(void);
-
 static struct device_node *cvm_oct_of_get_child(
                                const struct device_node *parent, int reg_val)
 {