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 AF5AA46051; Fri, 10 Jan 2025 18:06:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7315427A4; 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 C06534279E for ; Fri, 10 Jan 2025 18:06:16 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-21628b3fe7dso39461985ad.3 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=aFq7PVV2gSIWxyvlNuXv4J9CCuEmyBq7z5GZUnZg0kN0nF9s4LRyXNseP/avvT5Dvu X92WZaMEBzCp6zDA8Uj158Pcn0KBcZrreb9lIXOJpFxE3Ai08Pio+NVRJ81NuLySeuPJ YWTwnVd7QCAz6oILmv5VPUyr9Uq3Qv9jJFEE5tD+5Gb8e2p00sVaJ+AAi190q01fonM2 ZkXPIYaCVXHd2ndpfa8LUnrLYDlupDsE1GP9iBPl5Lf/lglX5oeUIIT5sJhzv+ve4ZDO J0jP/SpA7foisFQivK2rECdqr+Zun3X7SZE0gcNnCkqBnZh7BKtJtnm43yqXD2buMt8V ZO5A== X-Gm-Message-State: AOJu0YwBcb28j0DcAgFi4UxN8qajh1Tne/ElTaA8lLBj2HB4X8RghjN+ X6JazZUsGqy2PbXYpk9Axki7tIeLvnqCKZ5xJV1hmrbTRR/Grg7gNZokDWbAo6z5AjmtGtvdvdR G X-Gm-Gg: ASbGncv7EB1SaWeBz+NzqXTYc2Vhij/pCaDsfk1YzyfyRmMLnfkDX5GkvWzlUiMP3ez +2HKb4IwyaSbDsjQigDKcnRZ94u3nHlppFMBFy/6ghBFtQVzjkVmWZ/0KbyeSaLepKGuEhB9DqN v2qfxFCxHdb4C5MdqEluE6Zb+LRiw+Bp+ja8cwIw+FKm6naPcbFfhz/JC2plLv3E4NC3V7evOuI Nrn6ktLKDIOfVw6lnzQ5HkDEIZKn4qyVIDTxqAqQLaeAOVRlfKlbQHSzt01RlZ1ZHtscVDgmR6r 74QnrL2O1IOcxhqfq6/JWIJ2FzmIKDuLug== 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: 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