patch 'ethdev: fix build with LTO' has been queued to stable release 21.11.4
Kevin Traynor
ktraynor at redhat.com
Wed Mar 15 15:36:10 CET 2023
Hi,
FYI, your patch has been queued to stable release 21.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/20/23. 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
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/36cbdd704bef140db2e35afd727f090f0502f14f
Thanks.
Kevin
---
>From 36cbdd704bef140db2e35afd727f090f0502f14f Mon Sep 17 00:00:00 2001
From: Krzysztof Karas <krzysztof.karas at intel.com>
Date: Mon, 20 Feb 2023 17:44:06 +0100
Subject: [PATCH] ethdev: fix build with LTO
[ upstream commit cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 ]
When Link Time Optimization is enabled, compiler may
complain about "id" in eth_representor_cmp() being
uninitialized.
To suppress the warning it is enough to add explicit
initialization of the variable causing the issue.
Fixes: df7547a6a2cc ("ethdev: add helper function to get representor ID")
Signed-off-by: Krzysztof Karas <krzysztof.karas at intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
---
lib/ethdev/rte_class_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ethdev/rte_class_eth.c b/lib/ethdev/rte_class_eth.c
index c8e8fc9244..ae6fac5207 100644
--- a/lib/ethdev/rte_class_eth.c
+++ b/lib/ethdev/rte_class_eth.c
@@ -69,5 +69,5 @@ eth_representor_cmp(const char *key __rte_unused,
const struct rte_eth_dev_data *data = edev->data;
struct rte_eth_devargs eth_da;
- uint16_t id, nc, np, nf, i, c, p, f;
+ uint16_t id = 0, nc, np, nf, i, c, p, f;
if ((data->dev_flags & RTE_ETH_DEV_REPRESENTOR) == 0)
--
2.39.2
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-03-15 14:30:21.020887965 +0000
+++ 0017-ethdev-fix-build-with-LTO.patch 2023-03-15 14:30:20.569123644 +0000
@@ -1 +1 @@
-From cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 Mon Sep 17 00:00:00 2001
+From 36cbdd704bef140db2e35afd727f090f0502f14f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cdd7ab072d1e662b1d06840447e7d1b8ab8946e3 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -19 +19,0 @@
- .mailmap | 1 +
@@ -21 +21 @@
- 2 files changed, 2 insertions(+), 1 deletion(-)
+ 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -23,10 +22,0 @@
-diff --git a/.mailmap b/.mailmap
-index 8b84277954..69b6f4de1d 100644
---- a/.mailmap
-+++ b/.mailmap
-@@ -717,4 +717,5 @@ Krishna Murthy <krishna.j.murthy at intel.com>
- Krzysztof Galazka <krzysztof.galazka at intel.com>
- Krzysztof Kanas <kkanas at marvell.com> <krzysztof.kanas at caviumnetworks.com>
-+Krzysztof Karas <krzysztof.karas at intel.com>
- Krzysztof Witek <krzysztof.witek at 6wind.com>
- Kuba Kozak <kubax.kozak at intel.com>
@@ -34 +24 @@
-index 838b3a8f9f..b61dae849d 100644
+index c8e8fc9244..ae6fac5207 100644
@@ -37 +27 @@
-@@ -68,5 +68,5 @@ eth_representor_cmp(const char *key __rte_unused,
+@@ -69,5 +69,5 @@ eth_representor_cmp(const char *key __rte_unused,
More information about the stable
mailing list