Skip to contentSkip to conversation

Staging: octeon: Remove extern from .c file

PATCH New Helen Fornazier 1 participant 1 message Mar 26, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: octeon: Remove extern from .c file

This patch fixes the checkpatch.pl warning:

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

---
 drivers/staging/octeon/ethernet-mdio.h | 3 +++
 drivers/staging/octeon/ethernet.c      | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/staging/octeon/ethernet-mdio.h +3 -0
index eccfcc5..6191b08 100644
@@ -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);
drivers/staging/octeon/ethernet.c +0 -2
index 79f3334..f539d82 100644
@@ -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)
 {
Signature · 1 line
1.9.1