net: fec: Place 'inline' in the beginning of declaration
Subsystems (2)
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.
Signed-off-by Fabio Estevam <[email protected]>
---
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
@@ -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
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.
David Miller
maintainerAre you really too lazy to update the Subject line?