Thread (14 messages) read the whole thread 14 messages, 4 authors, 2017-07-26
STALE3293d

[pktgen PATCH 4/6] fix compilation with gcc 7

From: Thomas Monjalon <hidden>
Date: 2017-07-25 22:21:21
Subsystem: library code, the rest · Maintainers: Andrew Morton, Linus Torvalds

Signed-off-by: Thomas Monjalon <redacted>
---
 lib/common/mbuf.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/lib/common/mbuf.h b/lib/common/mbuf.h
index 0191b28..31bfa96 100644
--- a/lib/common/mbuf.h
+++ b/lib/common/mbuf.h
@@ -90,6 +90,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
 			rte_mbuf_refcnt_set(mbufs[idx], 1);
 			pktmbuf_reset(mbufs[idx]);
 			idx++;
+			/* fall-through */
 		case 3:
 #ifdef RTE_ASSERT
 			RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
@@ -99,6 +100,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
 			rte_mbuf_refcnt_set(mbufs[idx], 1);
 			pktmbuf_reset(mbufs[idx]);
 			idx++;
+			/* fall-through */
 		case 2:
 #ifdef RTE_ASSERT
 			RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
@@ -108,6 +110,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool,
 			rte_mbuf_refcnt_set(mbufs[idx], 1);
 			pktmbuf_reset(mbufs[idx]);
 			idx++;
+			/* fall-through */
 		case 1:
 #ifdef RTE_ASSERT
 			RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0);
-- 
2.13.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help