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 D84444625C for ; Tue, 18 Feb 2025 13:36:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1D49402A0; Tue, 18 Feb 2025 13:36:42 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2074.outbound.protection.outlook.com [40.107.220.74]) by mails.dpdk.org (Postfix) with ESMTP id D2EBB402A0 for ; Tue, 18 Feb 2025 13:36:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RO5GK6pSpgikYOHbIEhG3GdS2ITJwdpbeGCnqIJ7ltZfDAjs0mBLt7DQ7JZDVNIEYMfpWErsUYYgQQBwpKL6YdrGJiRFDR+28E5Nb1fFBmqactfxeRaR/EGIyOBVmKdinblYr+Ul3GEetE8u/yJCR8to/w+iNs6M334wOaktbNK/KzMoHzpZNL6p/VUT9j/JsBaV4jNvkOP5dyvs3zKqHKr8dX52De/H+MVNFdO2hRSs6SZikMqEnY40PiHo6m+M/RPd5KGZiBRcGhZfyfR8lW5ah+MACIHP/QIFstvmxkq5jfcpgLpERY1pDfE3mGnfTYQHpy+E7h1dPv448dbwlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n0Gxf3sRbPfY7QTt+tXoJxEmkh7bt6IP9KL7XzHmB70=; b=JZ+N3q7yx+ouOGscrSUjBxvFxdBXav8FPQmbUzh/vYQRs4yfxV+O92rb4UKBFk3lJC3ldNSgczyhJbGZLvH0AuO73q1rwB37HYjhHMo+WnQIvlo0qcCtt3CgBEHjcqmB26sy7AN0v9+qsEfeCqfgDXMcOJUm3Wy7IU6VMYzJUPdsNTrEJFYFDNAwVH3DM7xGXsEBXmjlZaONsfVQdB/MZNJiNUdAYqdNv7Wgc25l+rRTF4oA1yOqDQ+/9RtsLj5XMo2jziNPxrZuwZNkBJqNehsuNAS0hmq6RxieM/WKwsPorRcUKNFAzG2dKtqCN+5LYddtOp4xViCjDqfq4q23QQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=networkplumber.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n0Gxf3sRbPfY7QTt+tXoJxEmkh7bt6IP9KL7XzHmB70=; b=GSZyAfRfa+w2MllhXFlo5oma8tytBfaYVBbC0pksSXeV62JDjG2/lm0aIcRTHcPSF7szyhkmokR9Eat9sj2QjmhVMhLW74aEKgRY/cj1270F5c9bFg/96t57CsnWni09U2qSYjfNA7jTv/yhpxDo4JXfe9VZWatVlMSEKM2qNtDn/K9T11j4SW5cycHLUqSt/5+MQHQOYrRltfCStar/bPAE+7+DPjiZEqMS7BDpuAHDx6tmlyILJR9Oy+V1q2DR4UnsMVkw+3eSUJ4+BxdIPZamtMmQwEi3ENYwDs8jeJ8RXFlBq0ncFofj7Nkb205tqnaMMiug0flPrYew1h//rw== Received: from MN0P223CA0020.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:52b::11) by MN2PR12MB4392.namprd12.prod.outlook.com (2603:10b6:208:264::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8445.18; Tue, 18 Feb 2025 12:36:37 +0000 Received: from BN3PEPF0000B06E.namprd21.prod.outlook.com (2603:10b6:208:52b:cafe::d0) by MN0P223CA0020.outlook.office365.com (2603:10b6:208:52b::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8445.19 via Frontend Transport; Tue, 18 Feb 2025 12:36:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN3PEPF0000B06E.mail.protection.outlook.com (10.167.243.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8489.2 via Frontend Transport; Tue, 18 Feb 2025 12:36:36 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 18 Feb 2025 04:36:22 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Tue, 18 Feb 2025 04:36:20 -0800 From: Xueming Li To: Stephen Hemminger CC: , David Marchand , "dpdk stable" Subject: patch 'crypto/cnxk: fix build with GCC 15' has been queued to stable release 23.11.4 Date: Tue, 18 Feb 2025 20:34:01 +0800 Message-ID: <20250218123523.36836-7-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250218123523.36836-1-xuemingl@nvidia.com> References: <20250218123523.36836-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B06E:EE_|MN2PR12MB4392:EE_ X-MS-Office365-Filtering-Correlation-Id: d3644852-b5ed-44ef-7eb1-08dd5018e2b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024|13003099007|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?blFXZk9aNTVTUCt2SUorYXExd3VLZk9mODJwNXhBSEJ2TUtjSjc4OVFLVVJv?= =?utf-8?B?Y2hIeVZWTHl3YzFUa0VFd1p3RU1hSE1lcW51LzMwRHhjTHdqVXhWcW9VS2Nv?= =?utf-8?B?aDJrYjdzWEZHQ01uMHRHQkxIcXg2c0RtL0xSTFRZSUZXVWFQL2xOa2tIRkk4?= =?utf-8?B?ODFaL3ByYXFMZWRPdFduM2YrSlUvREdHUkZrOHBHd3QvTWR5WERhem5xZ1No?= =?utf-8?B?OGpTWmtFcm5XL3oxWVR1QlR1SHBYa0t3TUhpZjM2TU1QcjZCWFcwaEVscWRh?= =?utf-8?B?MUNvWFNTSG5tUUxjR3NBZjIwVWtoVm50U2x2eXIwYW9aSzRxcC8zNWplNTd6?= =?utf-8?B?YWtVeno1MzlaaXRheUVqYVpBaEpnMEFrcEVodHV4d2VHeXJVV1lpZmQwU2tK?= =?utf-8?B?US84K2ZEVlBJMWNUR0NzSHVBbjRHTFhQNjlrckFKU0tYakRJdGhNNmJDR0F2?= =?utf-8?B?NE53SFFSRXpMeDJISWdQY3IxWmt3WjBJZlNZcXAwakhubkdINXRtODNuR0JF?= =?utf-8?B?bU55UGgzVS9VbHlRT3BLTTBWNVcwYUgvVGI3VFhGcGRmKz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U2SU1yNzA2N3RISWlEazk2d2lB?= =?utf-8?B?TS9NV3I2UkQzMVRhNC84K3hwY2xHSW1Va04rM1FRSzVyS1JTd2RRN2tFdXdZ?= =?utf-8?B?Z211bnliMktWalVOdm1WOFJHUlV6SndoM0Q4VEROZXF5dVB3SDVKNDNwODRm?= =?utf-8?B?aFRaUVNBanREcndqWnIzamNjaysxMllpdnBvN3gyT3NWazhuUVJnOVNCbUZT?= =?utf-8?B?U29waUlxak5MUU1GS2FJb2VUWjlwa0xxc284bnJoRmxnUmczbC9Wczc4RGNq?= =?utf-8?B?c0hCSE15ek5pbkxpVUFFUTJ5bEZYVFQ1RE1ya3h2WUJPaWNUc0I4RWUvd1lG?= =?utf-8?B?TVhVT3dyVzFBQlpVbEVObHBJUTRGTXB6RlRCcXUwTi9STzFOZWc1OFNYU2Q2?= =?utf-8?B?cUF1VXVWY1YzUWJxVnlZRXNXaVdPdDdzYTBkK1c0NkRGdmc0bnUzOHh4Y1l3?= =?utf-8?B?eWVKYTMrdW8raUFhVG9mZUYvLy9Oc1dBNm5adXNRMnE5KzE2VnN4anZQRFdT?= =?utf-8?Q?cH0/hws4JRFvUnp3L7BsiAUqL95Su8=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024)(13003099007)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2025 12:36:36.6945 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3644852-b5ed-44ef-7eb1-08dd5018e2b0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B06E.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4392 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 23.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=448898cf70fadf25518e85bf719cbaf6779e5a00 Thanks. Xueming Li --- >From 448898cf70fadf25518e85bf719cbaf6779e5a00 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 20 Jan 2025 15:23:38 -0800 Subject: [PATCH] crypto/cnxk: fix build with GCC 15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 224e37a6a442b6a1f6d179b1756383f1a80cf3ed ] GCC 15 produces warnings about uninitialized variables. In file included from ../lib/mbuf/rte_mbuf.h:36, from ../lib/cryptodev/rte_crypto.h:15, from ../lib/cryptodev/rte_cryptodev.h:19, from ../drivers/crypto/cnxk/cn9k_cryptodev_ops.c:5: In function ‘pdcp_chain_sg1_prep’, inlined from ‘cpt_pdcp_chain_alg_prep’ at ../drivers/crypto/cnxk/cnxk_se.h:1621:11, inlined from ‘fill_pdcp_chain_params’ at ../drivers/crypto/cnxk/cnxk_se.h:3114:8, inlined from ‘cpt_sym_inst_fill’ at ../drivers/crypto/cnxk/cnxk_se.h:3364:9, inlined from ‘cn9k_cpt_inst_prep’ at ../drivers/crypto/cnxk/cn9k_cryptodev_ops.c:93:10: ../lib/eal/include/rte_common.h:469:38: warning: ‘fc_params.meta_buf.vaddr’ may be used uninitialized [-Wmaybe-uninitialized] 469 | #define RTE_PTR_ADD(ptr, x) ((void*)((uintptr_t)(ptr) + (x))) | ^~~~~~~~~~~~~~~~ ../drivers/common/cnxk/roc_platform.h:47:34: note: in expansion of macro ‘RTE_PTR_ADD’ 47 | #define PLT_PTR_ADD RTE_PTR_ADD | ^~~~~~~~~~~ ../drivers/crypto/cnxk/cnxk_se.h:900:19: note: in expansion of macro ‘PLT_PTR_ADD’ 900 | m_vaddr = PLT_PTR_ADD(m_vaddr, ROC_SE_OFF_CTRL_LEN + PLT_ALIGN_CEIL(hdr_len, 8)); | ^~~~~~~~~~~ In file included from ../drivers/crypto/cnxk/cn9k_cryptodev_ops.c:20: ../drivers/crypto/cnxk/cnxk_se.h: In function ‘cn9k_cpt_inst_prep’: ../drivers/crypto/cnxk/cnxk_se.h:3008:33: note: ‘fc_params.meta_buf.vaddr’ was declared here 3008 | struct roc_se_fc_params fc_params; | ^~~~~~~~~ In function ‘pdcp_chain_sg1_prep’, inlined from ‘cpt_pdcp_chain_alg_prep’ at ../drivers/crypto/cnxk/cnxk_se.h:1621:11, inlined from ‘fill_pdcp_chain_params’ at ../drivers/crypto/cnxk/cnxk_se.h:3114:8, inlined from ‘cpt_sym_inst_fill’ at ../drivers/crypto/cnxk/cnxk_se.h:3364:9, inlined from ‘cn9k_cpt_inst_prep’ at ../drivers/crypto/cnxk/cn9k_cryptodev_ops.c:82:10: ../lib/eal/include/rte_common.h:469:38: warning: ‘fc_params.meta_buf.vaddr’ may be used uninitialized [-Wmaybe-uninitialized] 469 | #define RTE_PTR_ADD(ptr, x) ((void*)((uintptr_t)(ptr) + (x))) | ^~~~~~~~~~~~~~~~ ../drivers/common/cnxk/roc_platform.h:47:34: note: in expansion of macro ‘RTE_PTR_ADD’ 47 | #define PLT_PTR_ADD RTE_PTR_ADD | ^~~~~~~~~~~ ../drivers/crypto/cnxk/cnxk_se.h:900:19: note: in expansion of macro ‘PLT_PTR_ADD’ 900 | m_vaddr = PLT_PTR_ADD(m_vaddr, ROC_SE_OFF_CTRL_LEN + PLT_ALIGN_CEIL(hdr_len, 8)); | ^~~~~~~~~~~ ../drivers/crypto/cnxk/cnxk_se.h: In function ‘cn9k_cpt_inst_prep’: ../drivers/crypto/cnxk/cnxk_se.h:3008:33: note: ‘fc_params.meta_buf.vaddr’ was declared here 3008 | struct roc_se_fc_params fc_params; | ^~~~~~~~~ Fixes: d3bff77cc371 ("crypto/cnxk: separate out PDCP chain datapath") Signed-off-by: Stephen Hemminger Acked-by: David Marchand --- drivers/crypto/cnxk/cnxk_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index cf163e0208..61f1c85857 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -3009,7 +3009,7 @@ fill_pdcp_chain_params(struct rte_crypto_op *cop, struct cnxk_se_sess *sess, { uint32_t ci_data_length, ci_data_offset, a_data_length, a_data_offset; struct rte_crypto_sym_op *sym_op = cop->sym; - struct roc_se_fc_params fc_params; + struct roc_se_fc_params fc_params = { }; struct rte_mbuf *m_src, *m_dst; uint8_t cpt_op = sess->cpt_op; uint64_t d_offs, d_lens; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-02-18 19:39:00.964886390 +0800 +++ 0006-crypto-cnxk-fix-build-with-GCC-15.patch 2025-02-18 19:39:00.408244086 +0800 @@ -1 +1 @@ -From 224e37a6a442b6a1f6d179b1756383f1a80cf3ed Mon Sep 17 00:00:00 2001 +From 448898cf70fadf25518e85bf719cbaf6779e5a00 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 224e37a6a442b6a1f6d179b1756383f1a80cf3ed ] @@ -54 +56,0 @@ -Cc: stable@dpdk.org @@ -63 +65 @@ -index 7262a49945..649e38c495 100644 +index cf163e0208..61f1c85857 100644 @@ -66 +68 @@ -@@ -3005,7 +3005,7 @@ fill_pdcp_chain_params(struct rte_crypto_op *cop, struct cnxk_se_sess *sess, +@@ -3009,7 +3009,7 @@ fill_pdcp_chain_params(struct rte_crypto_op *cop, struct cnxk_se_sess *sess,