Skip to contentSkip to conversation

net: fec: Place 'inline' in the beginning of declaration

PATCH In review Fabio Estevam 3 participants 3 messages Jan 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: fec: Place 'inline' in the beginning of declaration

From: Fabio Estevam <[email protected]>

Fix the following warning when building with W=1 option:

drivers/net/ethernet/freescale/fec.c:810:1: warning: '__inline__' is not at beginning of declaration [-Wold-style-declaration]

The inline declaration is pointless in this function, so just remove it.

---
Changes since v1:
- Remove the 'inline'

 drivers/net/ethernet/freescale/fec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/fec.c +1 -1
index a379319..69d6069 100644
@@ -807,7 +807,7 @@ fec_enet_interrupt(int irq, void *dev_id)
 
 
 /* ------------------------------------------------------------------------- */
-static void __inline__ fec_get_mac(struct net_device *ndev)
+static void fec_get_mac(struct net_device *ndev)
 {
 	struct fec_enet_private *fep = netdev_priv(ndev);
 	struct fec_platform_data *pdata = fep->pdev->dev.platform_data;
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Fabio Estevam

The inline declaration is pointless in this function, so just remove it.

Perhaps remove all 3 inlines from the file at the same time.