[dpdk-stable] patch 'net: fix pedantic build' has been queued to LTS release 18.11.10

Kevin Traynor ktraynor at redhat.com
Fri Aug 28 12:12:41 CEST 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.10

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 09/02/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/544af62d826c9ec383817c87df46bdf0e3a826ce

Thanks.

Kevin.

---
>From 544af62d826c9ec383817c87df46bdf0e3a826ce Mon Sep 17 00:00:00 2001
From: Raslan Darawsheh <rasland at mellanox.com>
Date: Tue, 21 Jul 2020 11:31:55 +0300
Subject: [PATCH] net: fix pedantic build

[ upstream commit e4f9eab7d948b952cc65e9e360576de3ff1f7a9e ]

when trying to compile rte_mpls with pedantic enabled,
on old compilers like 4.8 it will complain about bit field definition.

error: type of bit-field 'bs' is a GCC extension [-Werror=pedantic]
error: type of bit-field 'tc' is a GCC extension [-Werror=pedantic]
error: type of bit-field 'tag_lsb' is a GCC extension [-Werror=pedantic]

This fixes the compilation error by adding extension to the header
definition.

Fixes: e480cf487a0d ("net: add MPLS header structure")

Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 lib/librte_net/rte_mpls.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_net/rte_mpls.h b/lib/librte_net/rte_mpls.h
index 11d26ba35d..dabec32446 100644
--- a/lib/librte_net/rte_mpls.h
+++ b/lib/librte_net/rte_mpls.h
@@ -22,4 +22,5 @@ extern "C" {
  * MPLS header.
  */
+__extension__
 struct mpls_hdr {
 	uint16_t tag_msb;   /**< Label(msb). */
-- 
2.26.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-08-28 11:03:26.326443705 +0100
+++ 0015-net-fix-pedantic-build.patch	2020-08-28 11:03:25.943955610 +0100
@@ -1 +1 @@
-From e4f9eab7d948b952cc65e9e360576de3ff1f7a9e Mon Sep 17 00:00:00 2001
+From 544af62d826c9ec383817c87df46bdf0e3a826ce Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e4f9eab7d948b952cc65e9e360576de3ff1f7a9e ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index db91707e67..3e8cb90ec3 100644
+index 11d26ba35d..dabec32446 100644
@@ -33 +34 @@
- struct rte_mpls_hdr {
+ struct mpls_hdr {



More information about the stable mailing list