From patchwork Thu Nov 1 12:46:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahaf Shuler X-Patchwork-Id: 47676 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4D931B276; Thu, 1 Nov 2018 13:47:27 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id E0BC21B20D for ; Thu, 1 Nov 2018 13:47:25 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from shahafs@mellanox.com) with ESMTPS (AES256-SHA encrypted); 1 Nov 2018 14:52:41 +0200 Received: from unicorn01.mtl.labs.mlnx. (unicorn01.mtl.labs.mlnx [10.7.12.62]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wA1ClNsq005221; Thu, 1 Nov 2018 14:47:23 +0200 From: Shahaf Shuler To: ferruh.yigit@intel.com, olivier.matz@6wind.com Cc: dev@dpdk.org, stable@dpdk.org Date: Thu, 1 Nov 2018 14:46:45 +0200 Message-Id: <20181101124645.34952-1-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 Subject: [dpdk-dev] [PATCH] net: fix compilation with GRE header 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The following error popped when compiling with -pedantic: In file included from /.autodirect/swgwork/shahafs/workspace/dpdk.org/drivers/net/ mlx5/mlx5_flow_dv.c:28:0: /.autodirect/swgwork/shahafs/workspace/dpdk.org/ build/include/rte_gre.h:20:2: error: type of bit-field 'res2' is a GCC extension [-Werror=pedantic] uint16_t res2:4; /**< Reserved */ Fixing by adding the __extension__ attribute. Fixes: 894f71a3805d ("net: add GRE header structure") Cc: stable@dpdk.org Cc: olivier.matz@6wind.com Signed-off-by: Shahaf Shuler Reviewed-by: Ferruh Yigit --- lib/librte_net/rte_gre.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_net/rte_gre.h b/lib/librte_net/rte_gre.h index 69499bb82a..05aa9d143e 100644 --- a/lib/librte_net/rte_gre.h +++ b/lib/librte_net/rte_gre.h @@ -15,6 +15,7 @@ extern "C" { /** * GRE Header */ +__extension__ struct gre_hdr { #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN uint16_t res2:4; /**< Reserved */