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 7DE13460C9; Tue, 21 Jan 2025 00:24:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50EDF402C9; Tue, 21 Jan 2025 00:24:54 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 91CD94026B for ; Tue, 21 Jan 2025 00:24:52 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-216395e151bso63595725ad.0 for ; Mon, 20 Jan 2025 15:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737415492; x=1738020292; 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=568z/w5trj5eEx+BsX2DSLPEvrhkWl8Q12xtaoGI28w=; b=WYZa95+vLEQN2qPa+J0VAfLleDv5DemTk8YtwbmQOEHZ09XVL6E5JU+5Brc6gghsAl 4M1Hq9oNdbI2laqrjPa8J7P6cmtdGw6OOq2jhHOYaMzOBmHCB/x3wl3GERGpQ4nL3o6B 3N2qummtEQEA19rDxslIOhgwwuAIr75argPLlEXKuQRIjjgNZJEgZlkh8kvuYomD+AEi zMNKMDdfA2BL1NdSB4lpoRP4ID6AfvdJmJVTaxQsz+LFvMRj5tZJwxeUfR1UbalOw+W5 3TxOS8dFXfGCbvX3f0rQSV/BcPwVJ/1W8bry1+vYNcXitr0C+rfLKodbhaumcN2z5NRS c3VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737415492; x=1738020292; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=568z/w5trj5eEx+BsX2DSLPEvrhkWl8Q12xtaoGI28w=; b=uVKAz6hrdm7hBeO+kZVVro3FfY59Caz5d+wd3i9S9UA3dRdjeKr39pr4B/HKkGSd7T u+TdVH2G3SjzgvNAzU+u/RJc3myAbnoQHDdupy+FBhH+g3pLwZ7EN5NkkiVYUoONrSHT LKlRfPRGhkLATWAuK8cBYWQ56bbqrI/9FQHYn0E6e+X5ZCCvwCIRnV2mS+uqMQ7ZWe6K v57v8zKHksN9Afs9xCeQdeIQ0Z1BkkStX30S5CPGlnpre0GofduVH0MRTQjycSZYgcGd b/95r8ytv3+OnUtapH45CvsZHvPNvtTVzrrJOYNIbjehwa2V63U70lCPwjnrZ7F1HHhg pNBw== X-Gm-Message-State: AOJu0Ywbvg8ED4Glibi49lu6mzBbs4y2EvoqQxWOx2QtQIpTC0cMqLWa d2mNrhcgPMu8laSgW6QVn49jLiv+zvZe8SIDseZc01+xr4AgR3uRIzOI5wBD2O+1i/Ie5SkOa5X I X-Gm-Gg: ASbGncsg1xQesquzTz2tMbS78Of+PXRSNCocGjQYPP1XvV4W5jKtprFLcPLwl0xORAn 3NJJmAjaKjy6bz9GyoGmn1l15NOUf+t/JKiWAFkbPX2n89ga41YJvxrSz+hlUjreEzPIUqYcglV fQEfAYLWXrjf5vwAFIvSi0LSOfALklfdGPcuRAFgmFysT90FwBe9A20yr9EaoxCcVzSIKVJaP4a MERxWFSz3THyT3X4dkVqjJ1lwEPvNIdMCS4E00JtBNM4QKbsNBknEuGc1Tk87Y3kvuovGGNBklS eXFfNOPUhl+fHtj6Tm/I9e/3lnHoOwOxl27Es8FDR6zInUA= X-Google-Smtp-Source: AGHT+IG3IfM/DJKiT+Y4UGcTl03b690gKX/xgKdFjMdfmf0W0pNlV4iyfBxwf+XneaocfWtVc+eIyA== X-Received: by 2002:a17:903:988:b0:215:ba2b:cd55 with SMTP id d9443c01a7336-21c35c53045mr218630295ad.2.1737415491773; Mon, 20 Jan 2025 15:24:51 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3a87efsm65795125ad.138.2025.01.20.15.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 15:24:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , stable@dpdk.org, anoobj@marvell.com, Ankur Dwivedi , Tejasree Kondoj , Akhil Goyal Subject: [PATCH v2 1/3] crypto/cnxk: fix gcc 15 warning Date: Mon, 20 Jan 2025 15:23:38 -0800 Message-ID: <20250120232442.505866-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250120232442.505866-1-stephen@networkplumber.org> References: <20250110170603.538756-1-stephen@networkplumber.or> <20250120232442.505866-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org GCC 15 produces warnings about uninitaialized 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") Cc: stable@dpdk.org Cc: anoobj@marvell.com Signed-off-by: Stephen Hemminger --- 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 7262a49945..649e38c495 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -3005,7 +3005,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.45.2