From: Kevin Traynor <ktraynor@redhat.com>
To: David Marchand <david.marchand@redhat.com>
Cc: dpdk stable <stable@dpdk.org>
Subject: patch 'common/qat: fix some const pointers' has been queued to stable release 24.11.4
Date: Mon, 1 Dec 2025 14:41:04 +0000 [thread overview]
Message-ID: <20251201144112.633118-5-ktraynor@redhat.com> (raw)
In-Reply-To: <20251201144112.633118-1-ktraynor@redhat.com>
Hi,
FYI, your patch has been queued to stable release 24.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 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/7c0d8cfa66e76857415715d87e891370d0be7aa7
Thanks.
Kevin
---
From 7c0d8cfa66e76857415715d87e891370d0be7aa7 Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand@redhat.com>
Date: Fri, 28 Nov 2025 14:56:11 +0100
Subject: [PATCH] common/qat: fix some const pointers
[ upstream commit 6fc6bfb0913cdcb436346ca9c66352902cf36129 ]
With latest glibc (Fedora Rawhide):
../drivers/common/qat/qat_device.c: In function 'qat_dev_cmdline_get_val':
../drivers/common/qat/qat_device.c:183:43: warning: return discards 'const'
qualifier from pointer target type [-Wdiscarded-qualifiers]
183 | return key ? strchr(key, '=') + 1 : NULL;
| ^
../drivers/common/qat/qat_device.c: In function 'cmdline_validate':
../drivers/common/qat/qat_device.c:189:25: warning: initialization discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
189 | char *eq_sign = strchr(arg, '=');
| ^~~~~~
Fixes: 99ab2806687b ("common/qat: isolate parser arguments configuration")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/common/qat/qat_device.c | 7 ++++---
drivers/common/qat/qat_device.h | 2 +-
drivers/compress/qat/qat_comp_pmd.c | 2 +-
drivers/crypto/qat/qat_asym.c | 2 +-
drivers/crypto/qat/qat_sym.c | 2 +-
5 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c
index b582e3bf8b..07a8b19583 100644
--- a/drivers/common/qat/qat_device.c
+++ b/drivers/common/qat/qat_device.c
@@ -174,5 +174,5 @@ wireless_slice_support(uint16_t pci_dev_id)
* functions like strt*.
*/
-char *qat_dev_cmdline_get_val(struct qat_pci_device *qat_dev,
+const char *qat_dev_cmdline_get_val(struct qat_pci_device *qat_dev,
const char *key)
{
@@ -186,6 +186,7 @@ char *qat_dev_cmdline_get_val(struct qat_pci_device *qat_dev,
static int cmdline_validate(const char *arg)
{
+ const char *eq_sign = strchr(arg, '=');
int i, len;
- char *eq_sign = strchr(arg, '=');
+
/* Check for the equal sign */
if (eq_sign == NULL) {
@@ -264,5 +265,5 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev)
const struct rte_memzone *qat_dev_mz;
int qat_dev_size, extra_size;
- char *cmdline = NULL;
+ const char *cmdline = NULL;
rte_pci_device_name(&pci_dev->addr, name, sizeof(name));
diff --git a/drivers/common/qat/qat_device.h b/drivers/common/qat/qat_device.h
index f5ba1592c3..34937e963e 100644
--- a/drivers/common/qat/qat_device.h
+++ b/drivers/common/qat/qat_device.h
@@ -43,5 +43,5 @@ typedef int (*qat_dev_get_slice_map_t)(uint32_t *map,
const struct rte_pci_device *pci_dev);
-char *qat_dev_cmdline_get_val(struct qat_pci_device *qat_dev, const char *key);
+const char *qat_dev_cmdline_get_val(struct qat_pci_device *qat_dev, const char *key);
struct qat_dev_hw_spec_funcs {
diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c
index 55e510c91f..92dac79423 100644
--- a/drivers/compress/qat/qat_comp_pmd.c
+++ b/drivers/compress/qat/qat_comp_pmd.c
@@ -691,5 +691,5 @@ qat_comp_dev_create(struct qat_pci_device *qat_pci_dev)
uint64_t capa_size;
uint16_t sub_id = qat_dev_instance->pci_dev->id.subsystem_device_id;
- char *cmdline = NULL;
+ const char *cmdline = NULL;
snprintf(name, RTE_COMPRESSDEV_NAME_MAX_LEN, "%s_%s",
diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c
index dff7efbbff..9c7cd64c1d 100644
--- a/drivers/crypto/qat/qat_asym.c
+++ b/drivers/crypto/qat/qat_asym.c
@@ -1568,5 +1568,5 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev)
char capa_memz_name[RTE_CRYPTODEV_NAME_MAX_LEN];
uint16_t sub_id = qat_dev_instance->pci_dev->id.subsystem_device_id;
- char *cmdline = NULL;
+ const char *cmdline = NULL;
snprintf(name, RTE_CRYPTODEV_NAME_MAX_LEN, "%s_%s",
diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c
index d979ae6489..83f1084030 100644
--- a/drivers/crypto/qat/qat_sym.c
+++ b/drivers/crypto/qat/qat_sym.c
@@ -218,5 +218,5 @@ qat_sym_dev_create(struct qat_pci_device *qat_pci_dev)
&qat_sym_gen_dev_ops[qat_pci_dev->qat_dev_gen];
uint16_t sub_id = qat_dev_instance->pci_dev->id.subsystem_device_id;
- char *cmdline = NULL;
+ const char *cmdline = NULL;
snprintf(name, RTE_CRYPTODEV_NAME_MAX_LEN, "%s_%s",
--
2.51.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-12-01 11:18:48.789034037 +0000
+++ 0005-common-qat-fix-some-const-pointers.patch 2025-12-01 11:18:48.576735519 +0000
@@ -1 +1 @@
-From 6fc6bfb0913cdcb436346ca9c66352902cf36129 Mon Sep 17 00:00:00 2001
+From 7c0d8cfa66e76857415715d87e891370d0be7aa7 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6fc6bfb0913cdcb436346ca9c66352902cf36129 ]
+
@@ -19 +20,0 @@
-Cc: stable@dpdk.org
@@ -80 +81 @@
-index 8808337551..06f037cc14 100644
+index dff7efbbff..9c7cd64c1d 100644
@@ -83 +84 @@
-@@ -1698,5 +1698,5 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev)
+@@ -1568,5 +1568,5 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev)
next prev parent reply other threads:[~2025-12-01 14:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 14:41 patch 'test/debug: fix IOVA mode on PPC64 without huge pages' " Kevin Traynor
2025-12-01 14:41 ` patch 'bus/fslmc: fix const pointer in device name parsing' " Kevin Traynor
2025-12-01 14:41 ` patch 'bus/ifpga: " Kevin Traynor
2025-12-01 14:41 ` patch 'bus/uacce: fix const pointer in device matching' " Kevin Traynor
2025-12-01 14:41 ` Kevin Traynor [this message]
2025-12-01 14:41 ` patch 'crypto/caam_jr: fix const pointer in UIO filename parsing' " Kevin Traynor
2025-12-01 14:41 ` patch 'net/enetfec: " Kevin Traynor
2025-12-01 14:41 ` patch 'net/memif: fix const pointer in socket check' " Kevin Traynor
2025-12-01 14:41 ` patch 'app/procinfo: fix const pointer in collectd format' " Kevin Traynor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251201144112.633118-5-ktraynor@redhat.com \
--to=ktraynor@redhat.com \
--cc=david.marchand@redhat.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).