[PATCH net-next] pktgen: Fix fall-through annotation

Subsystems: networking [general], the rest

STALE2915d

2 messages, 2 authors, 2018-09-13 · open the first message on its own page

[PATCH net-next] pktgen: Fix fall-through annotation

From: Gustavo A. R. Silva <hidden>
Date: 2018-09-13 19:04:00

Replace "fallthru" with a proper "fall through" annotation.

This fix is part of the ongoing efforts to enabling
-Wimplicit-fallthrough

Signed-off-by: Gustavo A. R. Silva <redacted>
---
 net/core/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 7f69384..6ac9198 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -3426,7 +3426,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
 		net_info_ratelimited("%s xmit error: %d\n",
 				     pkt_dev->odevname, ret);
 		pkt_dev->errors++;
-		/* fallthru */
+		/* fall through */
 	case NETDEV_TX_BUSY:
 		/* Retry it next time */
 		refcount_dec(&(pkt_dev->skb->users));
-- 
2.7.4

Re: [PATCH net-next] pktgen: Fix fall-through annotation

From: David Miller <davem@davemloft.net>
Date: 2018-09-13 22:37:50

From: "Gustavo A. R. Silva" <redacted>
Date: Thu, 13 Sep 2018 14:03:20 -0500
Replace "fallthru" with a proper "fall through" annotation.

This fix is part of the ongoing efforts to enabling
-Wimplicit-fallthrough

Signed-off-by: Gustavo A. R. Silva <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help