summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-11-01 14:46:45 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commitbe685863a9ea636bf7924f0a8034bb4c21fb1402 (patch)
tree455b0ec228d0df45ff939a0537756d3494006409 /lib
parent3bcc6d6a832b67fd02776d95fe991640256a786f (diff)
downloaddpdk-be685863a9ea636bf7924f0a8034bb4c21fb1402.zip
dpdk-be685863a9ea636bf7924f0a8034bb4c21fb1402.tar.gz
dpdk-be685863a9ea636bf7924f0a8034bb4c21fb1402.tar.xz
net: fix build with pedantic
The following error popped when compiling with -pedantic: In file included from drivers/net/mlx5/mlx5_flow_dv.c:28:0: 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 Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_net/rte_gre.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_net/rte_gre.h b/lib/librte_net/rte_gre.h
index 69499bb..05aa9d1 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 */