Skip to contentSkip to conversation

Staging: octeon: Move extern to header file

PATCH In review Vatika Harlalka 2 participants 2 messages Mar 26, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: octeon: Move extern to header file

Move extern to header file. Functions have extern storage class by default so the keyword "extern" is removed."

---
 drivers/staging/octeon/ethernet-mdio.h | 1 +
 drivers/staging/octeon/ethernet.c      | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/staging/octeon/ethernet-mdio.h +1 -0
index eccfcc5..9cb652f 100644
@@ -42,3 +42,4 @@
 extern const struct ethtool_ops cvm_oct_ethtool_ops;
 int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
 int cvm_oct_phy_setup_device(struct net_device *dev);
+void octeon_mdiobus_force_mod_depencency(void);
drivers/staging/octeon/ethernet.c +0 -2
index 460e854..735d5be 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
maintainer
#1 lore raw
Quoted 8 lines · Vatika Harlalka

Move extern to header file. Functions have extern storage class by default so the keyword "extern" is removed."

---
 drivers/staging/octeon/ethernet-mdio.h | 1 +
 drivers/staging/octeon/ethernet.c      | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

Someone just sent this patch right before you did :(