patch 'bus/ifpga: fix const pointer in device name parsing' has been queued to stable release 22.11.11

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Dec 1 12:51:29 CET 2025


Hi,

FYI, your patch has been queued to stable release 22.11.11

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/03/25. 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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/ef6673b1ac8363974e39e52b285d48ad5a23dcdd

Thanks.

Luca Boccassi

---
>From ef6673b1ac8363974e39e52b285d48ad5a23dcdd Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Fri, 28 Nov 2025 14:56:09 +0100
Subject: [PATCH] bus/ifpga: fix const pointer in device name parsing

[ upstream commit c70b359f3734dfc6bb35ec6a6c73f2540d1e66c0 ]

With latest glibc (Fedora Rawhide):
../drivers/bus/ifpga/ifpga_bus.c: In function 'ifpga_parse':
../drivers/bus/ifpga/ifpga_bus.c:479:12: warning: assignment discards
	'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  479 |         c1 = strchr(name, '|');
      |            ^

Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 drivers/bus/ifpga/ifpga_bus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c
index 07e316b38e..918165a941 100644
--- a/drivers/bus/ifpga/ifpga_bus.c
+++ b/drivers/bus/ifpga/ifpga_bus.c
@@ -429,8 +429,8 @@ ifpga_parse(const char *name, void *addr)
 	int *out = addr;
 	struct rte_rawdev *rawdev = NULL;
 	char rawdev_name[RTE_RAWDEV_NAME_MAX_LEN];
-	char *c1 = NULL;
-	char *c2 = NULL;
+	const char *c1 = NULL;
+	const char *c2 = NULL;
 	int port = IFPGA_BUS_DEV_PORT_MAX;
 	char str_port[8];
 	int str_port_len = 0;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-12-01 11:51:15.364986700 +0000
+++ 0004-bus-ifpga-fix-const-pointer-in-device-name-parsing.patch	2025-12-01 11:51:15.215263515 +0000
@@ -1 +1 @@
-From c70b359f3734dfc6bb35ec6a6c73f2540d1e66c0 Mon Sep 17 00:00:00 2001
+From ef6673b1ac8363974e39e52b285d48ad5a23dcdd Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c70b359f3734dfc6bb35ec6a6c73f2540d1e66c0 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index ca9e49f548..fdce1f6b1f 100644
+index 07e316b38e..918165a941 100644
@@ -25 +26 @@
-@@ -468,8 +468,8 @@ ifpga_parse(const char *name, void *addr)
+@@ -429,8 +429,8 @@ ifpga_parse(const char *name, void *addr)


More information about the stable mailing list