From patchwork Tue Jun 25 17:33:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13711747 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32E8317D343; Tue, 25 Jun 2024 17:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.156.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719336885; cv=none; b=VKDVUl3ZkiyKe/u4XgwN67Zzx3ymUBhMuS8he+epxiJ7BiFoN2R6ZUDZWelYT/0CHeI48m5owmyJUD9gZnta9tYeZKaCn9Jv8HaOFd8yKff17xleOd7vDEjoqSdj1iOxjHUokB62aVf8nkkYJKjc4JYUlhJTgdpjCWDMIci8CMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719336885; c=relaxed/simple; bh=0cka1TXYMgRy2prVPvmLZJK3mOmAxfrX4QmsAG9GPJE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XP69VJ2ZFQB/1azQxWu4IfxF6rrbfXhgIUM817a5N5QrAV4AducoVdeAoPM+bVStuBfur1Q/x8+TF5z0FakFGuH5xit2362yjSvQiiU4RRpa9c009aPHug4a0SZCEIeWHBMfB4eaBNQJsyTSlO2oI1NIL4V/YrRwhwj49T8o9g0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=hv0U5f7f; arc=none smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="hv0U5f7f" Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45PBtXHK001310; Tue, 25 Jun 2024 10:34:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=x EiosIJji1IppRdg/uaMeU0xRTn18yfKGcsicaSPU7U=; b=hv0U5f7fnX0pQEQ2V NGhV7ZWa10dLbEE8pti4BlF5sz9V8jzD2YB8myTGHQv0IqJXtLIilkadzLK4+trT J35gvk0rgkVCAGp31Hg/MP2p2CGhSak7hTyyN6a9jlkZLvLH/lKpsrzLZMFZ089Z Y7mPskG0RfG+c+uTsM9KsUxXUbnTf4dSS2tMuFtHa1i2EOMahajCKi/LlBY89/gb DH5DPxrfU7NhLdK84occUQTrc7kVBLUYDQ3StNc7H5EnBHM/2XkMWP9EVOes96yv 1c6OLF4AZ9bQ1dpVD2CZNsazD+DrowYLM7LjSX/HvPIpgpNAdPpTONAg1ZKQ7dYb jRrOA== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3yywec9kkc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jun 2024 10:34:38 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 25 Jun 2024 10:34:38 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 25 Jun 2024 10:34:37 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id BF16B3F7063; Tue, 25 Jun 2024 10:34:33 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH v2 6/7] octeontx2-af: Fix klockwork issue in rvu_nix.c Date: Tue, 25 Jun 2024 23:03:49 +0530 Message-ID: <20240625173350.1181194-8-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240625173350.1181194-1-sumang@marvell.com> References: <20240625173350.1181194-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: -ElwGQc7q2JcoThwxd-Rg5g3VhbAhvl5 X-Proofpoint-GUID: -ElwGQc7q2JcoThwxd-Rg5g3VhbAhvl5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-25_12,2024-06-25_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org Added initialization of a local variable to avoid junk values if it is used before set. Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c index 00af8888e329..0c59295eaf9d 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c @@ -5375,7 +5375,7 @@ static void nix_inline_ipsec_cfg(struct rvu *rvu, struct nix_inline_ipsec_cfg *r int blkaddr) { u8 cpt_idx, cpt_blkaddr; - u64 val; + u64 val = 0; cpt_idx = (blkaddr == BLKADDR_NIX0) ? 0 : 1; if (req->enable) {