From: Shahaf Shuler <shahafs@mellanox.com>
To: ferruh.yigit@intel.com, olivier.matz@6wind.com
Cc: dev@dpdk.org, stable@dpdk.org
Subject: [dpdk-dev] [PATCH] net: fix compilation with GRE header
Date: Thu, 1 Nov 2018 14:46:45 +0200 [thread overview]
Message-ID: <20181101124645.34952-1-shahafs@mellanox.com> (raw)
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 <shahafs@mellanox.com>
---
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 */
--
2.12.0
next reply other threads:[~2018-11-01 12:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 12:46 Shahaf Shuler [this message]
2018-11-02 14:56 ` Ferruh Yigit
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=20181101124645.34952-1-shahafs@mellanox.com \
--to=shahafs@mellanox.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=olivier.matz@6wind.com \
--cc=stable@dpdk.org \
/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).