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 54D0248BF9 for ; Mon, 1 Dec 2025 12:52:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EBB840615; Mon, 1 Dec 2025 12:52:25 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 8CDA040431 for ; Mon, 1 Dec 2025 12:52:23 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-477a1c28778so46835905e9.3 for ; Mon, 01 Dec 2025 03:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764589943; x=1765194743; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZuBnzxF404ECBPiTmcU0iW9sTvRKMYIG+I1X02TYzwY=; b=bpDPkte97fWwXG7oGHnuv8ZxtvB5cNc12bUotkl1r7TOe4KWMYf23BZjsEBl/d8+lW IN2Fmk7Wzr0oEQ9XTBLYx0JbF4uIcwQWezwFAL5WoRYitzCODKo7lAxv1EHrCe2fj6Sd tLzrP/RqNyIrvZRa2c9UIOFABH0M+EMGemkcHSZAcidYuWHb0Now+4HapQghKe20QmYK HO4UFlKqk8XUgwGiQlZtDKQpE4jpUJHHzwgUvZfPcVfVvLz4LdVnrm9edPzmkSYe/PJx kv9jjDnbIIaoDSVDr0kEZBm9qjuD3FnbZNj7TT3gY0s9gA6ihVIX+nctpMYyor7qLbYg hFUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764589943; x=1765194743; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ZuBnzxF404ECBPiTmcU0iW9sTvRKMYIG+I1X02TYzwY=; b=PDZO6nzV6QQ310IxVklBBfkjqYUZbgQWtRJYcTxCqujp6thB6ABbdpgPkTbpL450Lu zShlMqv8Oqit1pUJrxvATACwNYfKd2vICw/2sO0GtPX4YRveZu1flvkkmoD6+cDpiV33 nDlzquymfJ4sawqH33JVPdh/Wf30DpoO1hPQ46SuiqCLts3mmw9xLQoLmZN2xXxyWg/I AOmBi3/lOOLYTU3dyaPzfmK2x1nG76XeRTIhjjIb6BwdAn+3O1YwkdHXlGCyv4XKGsKg kz/gG71nhlDaA5LrrcXRzv4FkZ3cwqLu1kslp1GDfCb0G9aspmT2csCG89/iiyV6PuAY K33Q== X-Forwarded-Encrypted: i=1; AJvYcCXNBM2Dd4XmR/xvRONdSrr7BXuEKuUXSz1F2YFA2OGfjKOcUKi9TtMBI355wFMrbCbm3VC60ew=@dpdk.org X-Gm-Message-State: AOJu0Yy0dmWlOMuwBvw0+jseotLzaewUlSaTBefUZuDcbl3ujgBStpoD gZPBXxfDhMsBZ79+X9q2GIo/XcOesR2QQHZQ10pTBFtVbAJFqfJe3WuZ X-Gm-Gg: ASbGnct1eiqjQKbgkvfqBRbRsdkubuXWTGB9BTT9V70QWJ7m8XA1AXgF9SYq5+bh01+ 6KEgVsFGVCevmcOmFroCqypi3OM2uTuk3KoAw689EwIYyasZBrglXaK9VJxU3LXroj4AdJghLO6 vRK8g0xYz54Y0gzQyj288gvWdzi7vmIRc5pK2mKgTCVJ7woLSTXhxhtVDzABpcOVrQOuYnx4tJd xDXsjz4I2YJWgh0aaoTRRPqm3ewysFGGxy2bsltkbl9nXQuWQXFvyxsEGlBWWxxwXfYNa9ARi3t Jp39m38OpFc5nDXdY9mlE61pXXSO9S5zLRddPJkniBy+SP66+8i9os+AAdt7u94vTUUU7Mjd73H aYiVcPiDi6yx++80zfEKZ/+Kz2XAwkNqdoCd43c72aCEm/bQRolJwNt0aGDkju0U46gBAflgnIq JcWbNYGx0toVEwO84= X-Google-Smtp-Source: AGHT+IE8SvIVyUxDTp7lETZaM9oPp94Hu+mjpnilvgwVSdZQ42tksrXLlMD+opwUaDGtIr5xLdvUVQ== X-Received: by 2002:a5d:5f82:0:b0:42b:394a:9b1 with SMTP id ffacd0b85a97d-42e0f343c5amr25005172f8f.37.1764589943068; Mon, 01 Dec 2025 03:52:23 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:7f7d:235f:8cc:c7f7]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-42e1c5d6049sm26744806f8f.10.2025.12.01.03.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 03:52:22 -0800 (PST) From: luca.boccassi@gmail.com To: David Marchand Cc: Chengwen Feng , dpdk stable Subject: patch 'app/procinfo: fix const pointer in collectd format' has been queued to stable release 22.11.11 Date: Mon, 1 Dec 2025 11:51:33 +0000 Message-ID: <20251201115155.2462035-8-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251201115155.2462035-1-luca.boccassi@gmail.com> References: <20251125181053.1783870-4-luca.boccassi@gmail.com> <20251201115155.2462035-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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/2f20b57940cfa07960247de7e5c32d2af346d60a Thanks. Luca Boccassi --- >From 2f20b57940cfa07960247de7e5c32d2af346d60a Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 28 Nov 2025 14:56:15 +0100 Subject: [PATCH] app/procinfo: fix const pointer in collectd format [ upstream commit 11a64ff198cf3d380c00f08d3895cd06dcd90d44 ] With latest glibc (Fedora Rawhide): ../app/proc-info/main.c: In function 'collectd_resolve_cnt_type': ../app/proc-info/main.c:689:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 689 | char *type_end = strrchr(cnt_name, '_'); | ^~~~~~~ Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") Signed-off-by: David Marchand Reviewed-by: Chengwen Feng --- app/proc-info/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 8fd7ac945c..dc0749ca6e 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -501,7 +501,7 @@ nic_stats_clear(uint16_t port_id) static void collectd_resolve_cnt_type(char *cnt_type, size_t cnt_type_len, const char *cnt_name) { - char *type_end = strrchr(cnt_name, '_'); + const char *type_end = strrchr(cnt_name, '_'); if ((type_end != NULL) && (strncmp(cnt_name, "rx_", strlen("rx_")) == 0)) { -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-12-01 11:51:15.501590275 +0000 +++ 0008-app-procinfo-fix-const-pointer-in-collectd-format.patch 2025-12-01 11:51:15.219263610 +0000 @@ -1 +1 @@ -From 11a64ff198cf3d380c00f08d3895cd06dcd90d44 Mon Sep 17 00:00:00 2001 +From 2f20b57940cfa07960247de7e5c32d2af346d60a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 11a64ff198cf3d380c00f08d3895cd06dcd90d44 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index b09c03ab35..5925bbb765 100644 +index 8fd7ac945c..dc0749ca6e 100644 @@ -26 +27 @@ -@@ -686,7 +686,7 @@ nic_stats_clear(uint16_t port_id) +@@ -501,7 +501,7 @@ nic_stats_clear(uint16_t port_id)