patch 'net/hns3: fix build with gcov' has been queued to stable release 20.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Nov 3 10:27:40 CET 2022


Hi,

FYI, your patch has been queued to stable release 20.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/05/22. 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/85c5d6e7d7176ab1de3bdb3b1b794077efa8bedf

Thanks.

Luca Boccassi

---
>From 85c5d6e7d7176ab1de3bdb3b1b794077efa8bedf Mon Sep 17 00:00:00 2001
From: Dongdong Liu <liudongdong3 at huawei.com>
Date: Fri, 30 Sep 2022 15:22:08 +0800
Subject: [PATCH] net/hns3: fix build with gcov
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[ upstream commit 38dc579e0f32d5b508f993cf017ce46806177e86 ]

meson build -Db_coverage=true
ninja -C build

../drivers/net/hns3/hns3_ethdev.c:2856:22: warning: ‘cfg.umv_space’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
 2856 |  pf->wanted_umv_size = cfg.umv_space;

Fix compiling warnings using gcc 10.3.1.

Signed-off-by: Dongdong Liu <liudongdong3 at huawei.com>
---
 drivers/net/hns3/hns3_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c
index 500de265c4..be1d9db19d 100644
--- a/drivers/net/hns3/hns3_ethdev.c
+++ b/drivers/net/hns3/hns3_ethdev.c
@@ -3173,6 +3173,7 @@ hns3_get_board_configuration(struct hns3_hw *hw)
 	struct hns3_cfg cfg;
 	int ret;
 
+	memset(&cfg, 0, sizeof(cfg));
 	ret = hns3_get_board_cfg(hw, &cfg);
 	if (ret) {
 		PMD_INIT_LOG(ERR, "get board config failed %d", ret);
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-11-03 09:27:30.336075580 +0000
+++ 0082-net-hns3-fix-build-with-gcov.patch	2022-11-03 09:27:25.537425615 +0000
@@ -1 +1 @@
-From 38dc579e0f32d5b508f993cf017ce46806177e86 Mon Sep 17 00:00:00 2001
+From 85c5d6e7d7176ab1de3bdb3b1b794077efa8bedf Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit 38dc579e0f32d5b508f993cf017ce46806177e86 ]
+
@@ -24 +26 @@
-index 330a913cb8..bbc086f21d 100644
+index 500de265c4..be1d9db19d 100644
@@ -27 +29 @@
-@@ -2808,6 +2808,7 @@ hns3_get_board_configuration(struct hns3_hw *hw)
+@@ -3173,6 +3173,7 @@ hns3_get_board_configuration(struct hns3_hw *hw)


More information about the stable mailing list