patch 'net/enetfec: fix const pointer in UIO filename 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:31 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/6da8f3825d91e03ff6ad8160fcab8134bd63a08a

Thanks.

Luca Boccassi

---
>From 6da8f3825d91e03ff6ad8160fcab8134bd63a08a Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Fri, 28 Nov 2025 14:56:13 +0100
Subject: [PATCH] net/enetfec: fix const pointer in UIO filename parsing

[ upstream commit 405bbb5cdc60ea9110b3dbd9a20e55262a0d85a2 ]

With latest glibc (Fedora Rawhide):
../drivers/net/enetfec/enet_uio.c: In function 'file_name_match_extract':
../drivers/net/enetfec/enet_uio.c:37:16: warning: assignment discards
	'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   37 |         substr = strstr(filename, match);
      |                ^

Fixes: b84fdd39638b ("net/enetfec: support UIO")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 drivers/net/enetfec/enet_uio.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/net/enetfec/enet_uio.c b/drivers/net/enetfec/enet_uio.c
index 786e7b6a0e..5477ee4f26 100644
--- a/drivers/net/enetfec/enet_uio.c
+++ b/drivers/net/enetfec/enet_uio.c
@@ -32,13 +32,7 @@ static int enetfec_count;
 static bool
 file_name_match_extract(const char filename[], const char match[])
 {
-	char *substr = NULL;
-
-	substr = strstr(filename, match);
-	if (substr == NULL)
-		return false;
-
-	return true;
+	return strstr(filename, match) != NULL;
 }
 
 /*
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-12-01 11:51:15.433335326 +0000
+++ 0006-net-enetfec-fix-const-pointer-in-UIO-filename-parsin.patch	2025-12-01 11:51:15.215263515 +0000
@@ -1 +1 @@
-From 405bbb5cdc60ea9110b3dbd9a20e55262a0d85a2 Mon Sep 17 00:00:00 2001
+From 6da8f3825d91e03ff6ad8160fcab8134bd63a08a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 405bbb5cdc60ea9110b3dbd9a20e55262a0d85a2 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index f32d5e1b1e..c3917cd9df 100644
+index 786e7b6a0e..5477ee4f26 100644


More information about the stable mailing list