From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 68B84388F for ; Wed, 26 Jul 2017 00:21:21 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0F86B212DF; Tue, 25 Jul 2017 18:21:21 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 25 Jul 2017 18:21:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=2vH WA/gvZHo07zyPiaYk9j2y4/z36smvnYFzExft2SU=; b=m15fcYoA7ULbmGKg5oa x1wsJ3v1xzcTdOdWUqouI13riHcawDEMSJy6KXNksZlGtfWNy2vJTCZ0PZET3S2r 8Lfibk0t+YDxaGAnxKs7FLVYkKnOEUQ8Ai0dcjjgR8N+lRKHv3cei7SX94+mR2FJ tN2nVNQmNKhT96UzHa9/Eg58= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=2vHWA/gvZHo07zyPiaYk9j2y4/z36smvnYFzExft2 SU=; b=RN62phQVeHGQEdx/pUPF9IyQtR5CYS6m7XfGbjdvBf9Q9Y0xZjipDqbQ+ vyKDPPGBNTCPcOt0O7/uGOdU0J52A3n7uQyQP4urFp51wJRyT6maRRS9kycxfvGv whQFkwNGAoem7wWyLTfGwFqv1H3dVF79xDcObXl8hkRDU7E8tVaYD2gb5JfyK0Nd FZr4NHaNh9H5FeTPRjEyXDSSpjEvruNVInX8v07TJSDLDKQCbEaZoG5cmy2k0nPQ qLXSbdj8SUaqWAGmyEXRcI0OzwdVh5jSO0OR3O0HLErQf5NUjLov0I8HOb/K0JXa vsBYO3fjjb6r/1JkZy7sEgsKT74Sw== X-ME-Sender: X-Sasl-enc: YQFnzNZr7bX1spKqva78MeRYf9YUDCNtaQPYXcNFTe8+ 1501021280 Received: from xps.domain.com (bzq-164-168-31-206.red.bezeqint.net [31.168.164.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 10B2824130; Tue, 25 Jul 2017 18:21:19 -0400 (EDT) From: Thomas Monjalon To: keith.wiles@intel.com Cc: dev@dpdk.org Date: Wed, 26 Jul 2017 01:21:05 +0300 Message-Id: <20170725222107.23203-5-thomas@monjalon.net> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170725222107.23203-1-thomas@monjalon.net> References: <20170725222107.23203-1-thomas@monjalon.net> Subject: [dpdk-dev] [pktgen PATCH 4/6] fix compilation with gcc 7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2017 22:21:22 -0000 Signed-off-by: Thomas Monjalon --- 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