patch 'common/zsda: remove unused variable' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 13:59:36 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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/7162ab8e6b4580894dda544635fae7c9f6841247
Thanks.
Kevin
---
>From 7162ab8e6b4580894dda544635fae7c9f6841247 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Sat, 29 Aug 2026 08:44:47 -0700
Subject: [PATCH] common/zsda: remove unused variable
[ upstream commit 03e6249114787a0b16ffe4f05ea78acc74f968ba ]
zsda_nb_pci_devices is incremented when a PCI device is allocated and
decremented when it is released, but the count is never read.
clang 23 reports:
zsda_device.c:10:12: warning: variable 'zsda_nb_pci_devices' set but
not used [-Wunused-but-set-global]
Remove the counter and the three sites that update it.
Fixes: 6592da5893d3 ("common/zsda: add base driver")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: David Marchand <david.marchand at redhat.com>
---
drivers/common/zsda/zsda_device.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/common/zsda/zsda_device.c b/drivers/common/zsda/zsda_device.c
index 72f017c699..280a51f9b3 100644
--- a/drivers/common/zsda/zsda_device.c
+++ b/drivers/common/zsda/zsda_device.c
@@ -8,5 +8,4 @@
/* per-process array of device data */
struct zsda_device_info zsda_devs[RTE_PMD_ZSDA_MAX_PCI_DEVICES];
-static int zsda_nb_pci_devices;
/*
@@ -86,5 +85,4 @@ zsda_pci_device_allocate(struct rte_pci_device *pci_dev)
zsda_devs[zsda_pci_dev->zsda_dev_id].mz = mz;
zsda_devs[zsda_pci_dev->zsda_dev_id].pci_dev = pci_dev;
- zsda_nb_pci_devices++;
return zsda_pci_dev;
}
@@ -115,6 +113,4 @@ zsda_pci_device_allocate(struct rte_pci_device *pci_dev)
zsda_devs[zsda_dev_id].pci_dev = pci_dev;
- zsda_nb_pci_devices++;
-
return zsda_pci_dev;
}
@@ -142,5 +138,4 @@ zsda_pci_device_release(const struct rte_pci_device *pci_dev)
memset(inst, 0, sizeof(struct zsda_device_info));
- zsda_nb_pci_devices--;
}
return 0;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:40.744461507 +0000
+++ 0050-common-zsda-remove-unused-variable.patch 2026-12-03 12:52:39.047045524 +0000
@@ -1 +1 @@
-From 03e6249114787a0b16ffe4f05ea78acc74f968ba Mon Sep 17 00:00:00 2001
+From 7162ab8e6b4580894dda544635fae7c9f6841247 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 03e6249114787a0b16ffe4f05ea78acc74f968ba ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list