From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 116AE48BFA for ; Mon, 1 Dec 2025 15:41:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 066014021F; Mon, 1 Dec 2025 15:41:32 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 37C7E4042C for ; Mon, 1 Dec 2025 15:41:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764600089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aWUQvhAUy+347PgYlY1tiVtQkwMMjWjppsaNz4LHqCQ=; b=Z+KgsDDrzTwqVYWrq9fRvICKkJYs6d3B5nyg/GsAFY61D97Bp33njoy48ET64siEaCFpwM hBX9H/4o/vYEgHOn4rtbPYvN0pSG9nhVsBitMVg8yfO5tB1SwiyomffWmLpqwjrcULFMos pWT1vP4dtYCBSag6anaCBFap6wQ0Vb8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-645-TEwgdnGxM7y6Ej11lG2u-w-1; Mon, 01 Dec 2025 09:41:28 -0500 X-MC-Unique: TEwgdnGxM7y6Ej11lG2u-w-1 X-Mimecast-MFC-AGG-ID: TEwgdnGxM7y6Ej11lG2u-w_1764600087 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 90F2D1956071 for ; Mon, 1 Dec 2025 14:41:27 +0000 (UTC) Received: from rh.redhat.com (unknown [10.42.28.204]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9B82A180047F; Mon, 1 Dec 2025 14:41:26 +0000 (UTC) From: Kevin Traynor To: David Marchand Cc: dpdk stable 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 Message-ID: <20251201144112.633118-5-ktraynor@redhat.com> In-Reply-To: <20251201144112.633118-1-ktraynor@redhat.com> References: <20251201144112.633118-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: PGn-Uqka-7ZtZZ8hY2cDB2vHobeVtaEzz2KJfnzy7fA_1764600087 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 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 --- 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)