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 BE94446051 for ; Fri, 10 Jan 2025 18:06:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 941924279D; Fri, 10 Jan 2025 18:06:17 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 9FCE44279D for ; Fri, 10 Jan 2025 18:06:16 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2163b0c09afso40758675ad.0 for ; Fri, 10 Jan 2025 09:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1736528775; x=1737133575; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=568z/w5trj5eEx+BsX2DSLPEvrhkWl8Q12xtaoGI28w=; b=15GUauQf0vSd+G+31WQjn1BYYQ3WkqW89S3u+VnI3GS5WSUzYvqCByhq97zvW/h11U I9lh+GAwj3X+TjCWToQDQbt+I5zSIjfB0SYPzhBZTVddXA7reTTIQRrx79pN9lJIjHCZ py4/st2L1uw3mCkr8WuaoswXb3/KMS3AoPBo40pjs/MfGwdfd2G6pi2OKKu2VXurtYTJ VXsvnoJOB9BE6yElgh7v39u19yhHFGzdygwczcFe8Vh+VKc5VtsGzBGjDSA5VKbAQLHG OFQQYQdgdyIt8xNH5/kFWJzyMTcQ7wN652Fqxq4Ftt7unVSsSV74XaIF1/QtfYd1zYtu rcSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736528775; x=1737133575; h=content-transfer-encoding:mime-version: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=d1Lsd+S18zemhReMPsXnW7N0P1yV//57vp82BPkpSBlhUxRFd13ngQARe6PwFYS0Dn 6iiMdMuDDUE3PkFn1JN9IuQ9PyudbyHJJxEL8Q9fnw1t9akKMzxk4qGspoUGeg9JRxHT ixR9ysetZVrI10nKuWwcW5FTcBD9bvy1jEvGI3OzbE3QRxRBm8+Tuxrbw7D8vBFt5f0K ZEdEb7hbBpd5yJXQXT2x8o+9arGsfw8ZVUTqMCeJmMoGyX+1xEUFwliBIE+mlnmPSH/l xiG0omPYlKiwjBweyi+aDf+GXQEODdKM/xtCXTHudcNc0Gi70+a6rZ3SWTRLV3pispvW +TiA== X-Forwarded-Encrypted: i=1; AJvYcCUN6AxjGPqay7pO9w+viOdgLtD1ay6bc8zLj7mQFE/MIdntpAhTiilfuPWChM9dDzIwPmvqd5U=@dpdk.org X-Gm-Message-State: AOJu0Yztu/yz4agI4MbEzGpvNGQVujqimgVXDoMYiUO93alIh96SzS2r LpgAvImT8l+Hor3j5f+tPLWCOidfJLLvecxaXHiGY1pIAI69rAU6X7CAiKIXQPY= X-Gm-Gg: ASbGncs/lF6SkYM1GdHQUNyt8Qw0nWl6J+7t6q0RCFUEv0pcSAQSpTX+71tAV3TYUOd 72Pj6922HTcyivD74KzDWPee4lvf8cEMYbB+1HjhP4yG4iEI2Ej2osL98d8/XtbZQDUh6yGumDO M4DclTsCcp4wolx2nCtmgEF+2CE6drawmPjOUOdBD+6rp9dgq6JGq6SwUnRFvVEuwqC+TSdcNpU K2ruJ5VFJGVb8iRbFHC5h/8bS7/2Rqvn1CIew0xbqxdC/X/dLpTtvIeoE8cC+1n31ZWUsplf8FL CmXrDnWG4vvrpLkAGiPIGSAiUsuuYjkCsA== X-Google-Smtp-Source: AGHT+IF22cxsenDjQl6w9vzMiRPyYqmQJRBoYrcEhj6lfzhYyY1sf2526Vlwh4/KuywzrSd73ouuyA== X-Received: by 2002:a17:903:1cf:b0:21a:8300:b9d5 with SMTP id d9443c01a7336-21a83f4cd36mr185087995ad.23.1736528775424; Fri, 10 Jan 2025 09:06:15 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f155f59sm15975995ad.106.2025.01.10.09.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 09:06:14 -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] crypto/cnxk: fix gcc 15 warning Date: Fri, 10 Jan 2025 09:06:03 -0800 Message-ID: <20250110170603.538756-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 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