[dpdk-dev,pktgen,4/6] fix compilation with gcc 7

Message ID 20170725222107.23203-5-thomas@monjalon.net (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply patch file failure

Commit Message

Thomas Monjalon July 25, 2017, 10:21 p.m. UTC
  Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 lib/common/mbuf.h | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

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);