From: Thomas Monjalon <thomas@monjalon.net>
To: keith.wiles@intel.com
Cc: dev@dpdk.org
Subject: [dpdk-dev] [pktgen PATCH 4/6] fix compilation with gcc 7
Date: Wed, 26 Jul 2017 01:21:05 +0300 [thread overview]
Message-ID: <20170725222107.23203-5-thomas@monjalon.net> (raw)
In-Reply-To: <20170725222107.23203-1-thomas@monjalon.net>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
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
next prev parent reply other threads:[~2017-07-25 22:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-25 22:21 [dpdk-dev] [pktgen PATCH 0/6] fix compilation Thomas Monjalon
2017-07-25 22:21 ` [dpdk-dev] [pktgen PATCH 1/6] remove unused functions Thomas Monjalon
2017-07-25 22:21 ` [dpdk-dev] [pktgen PATCH 2/6] fix screen type saving Thomas Monjalon
2017-07-25 22:21 ` [dpdk-dev] [pktgen PATCH 3/6] fix compilation of printf based functions Thomas Monjalon
2017-07-25 22:21 ` Thomas Monjalon [this message]
2017-07-25 22:21 ` [dpdk-dev] [pktgen PATCH 5/6] fix 32-bit build Thomas Monjalon
2017-07-25 22:21 ` [dpdk-dev] [pktgen PATCH 6/6] fix build with dpdk-17.08-rc2 Thomas Monjalon
2017-07-26 3:54 ` [dpdk-dev] [pktgen PATCH 0/6] fix compilation Wiles, Keith
2017-07-26 4:40 ` Roberts, Lee A.
2017-07-26 5:39 ` Thomas Monjalon
2017-07-26 14:35 ` [dpdk-dev] hierarchy_commit() message displayed when not using TM Wiles, Keith
2017-07-26 14:58 ` Lu, Wenzhuo
2017-07-26 14:52 ` [dpdk-dev] [pktgen PATCH 0/6] fix compilation Wiles, Keith
2017-07-26 15:01 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170725222107.23203-5-thomas@monjalon.net \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=keith.wiles@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).