Skip to content

Commit 278af57

Browse files
arndbdavem330
authored andcommitted
net: gianfar: fix old-style declaration
Modern C standards expect the '__inline__' keyword to come before the return type in a declaration, and we get a warning for this with "make W=1": drivers/net/ethernet/freescale/gianfar.c:2278:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ac56506 commit 278af57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/gianfar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ static inline void gfar_tx_checksum(struct sk_buff *skb, struct txfcb *fcb,
22752275
fcb->flags = flags;
22762276
}
22772277

2278-
void inline gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
2278+
static inline void gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
22792279
{
22802280
fcb->flags |= TXFCB_VLN;
22812281
fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb));

0 commit comments

Comments
 (0)