From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 05D3D316B for ; Thu, 13 Apr 2017 07:29:35 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from shahafs@mellanox.com) with ESMTPS (AES256-SHA encrypted); 13 Apr 2017 08:29:32 +0300 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 v3D5TVrM025956; Thu, 13 Apr 2017 08:29:31 +0300 Received: from unicorn01.mtl.labs.mlnx (localhost [127.0.0.1]) by unicorn01.mtl.labs.mlnx (8.14.7/8.14.7) with ESMTP id v3D5TVLC082888; Thu, 13 Apr 2017 08:29:31 +0300 Received: (from root@localhost) by unicorn01.mtl.labs.mlnx (8.14.7/8.14.7/Submit) id v3D5TROj082885; Thu, 13 Apr 2017 08:29:27 +0300 From: Shahaf Shuler To: thomas.monjalon@6wind.com Cc: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, dev@dpdk.org Date: Thu, 13 Apr 2017 08:29:27 +0300 Message-Id: <20170413052927.82842-1-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 Subject: [dpdk-dev] [PATCH] ethdev: fix compilation issue with strict flags 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: Thu, 13 Apr 2017 05:29:36 -0000 Compilation error seen while compiling mlx5 in debug mode under RHEL 7.3: rte_ethdev.h:1670:7: error: type of bit-field 'state' is a GCC extension [-Werror=pedantic] Address it by removing the unnecessary bit-field width limitation. Fixes: d52268a8b24b ("ethdev: expose device states") Signed-off-by: Shahaf Shuler --- lib/librte_ether/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index d07253874..2d1bc12aa 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1667,7 +1667,7 @@ struct rte_eth_dev { * received packets before passing them to the driver for transmission. */ struct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT]; - enum rte_eth_dev_state state:8; /**< Flag indicating the port state */ + enum rte_eth_dev_state state; /**< Flag indicating the port state */ } __rte_cache_aligned; struct rte_eth_dev_sriov { -- 2.12.0