Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4216148pxf; Tue, 16 Mar 2021 08:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqSyzLH/fUAvqNzOloVEYXSRI83EOqnTwAi0gWzc+5ErFSLqqLl8sVaBpxEyaXxdo1xrw0 X-Received: by 2002:a05:6402:3089:: with SMTP id de9mr37122937edb.10.1615907661688; Tue, 16 Mar 2021 08:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615907661; cv=none; d=google.com; s=arc-20160816; b=BtgzVo6desylccmNpY+IJKcORQk/UiqJHQca9mYIUWEmY8Kd7TXNSrCMrXR8wgASjA RvFGMdM2aIEMvn5yB5Ld4S25FB9PDH5WwJvXaZ2C7hCSbcl7+K1+je9GmzMgVXM1hyoo pwRz7DQOZMn6V2e4yZuSewL3dHMtXSAnANgBfd7XpfdoSerNWjcsK3/jQAz3Cf2RaDPE 5rV+P8eS2J/R1BJpyhiwOT9ZmInsLcX2rjRbRHgyIWh4sLeVlzjHYypMCCWcZ9sW3rG2 LBC3+iNMTgy0ufOZGPwT270+xx0pJLCgzdL5yj1KQVqHJvgQWi2Jf/i8HnQ9OSsF133s fyWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=beTtpW1LAxHA1z76FxzIMnNtJUUnyxNm+MsVZEUyeIs=; b=AMKaDTdWqqj5JQYwGL26lre2CO0KnG/J4qhzotlaSEL5SqnsktYrWjiS7Sww98ropn EfjverSlPq25OgqxHqSvXj+DAFXBeAq6Q6dEIEtF5H36Qgi/Y8PwsWRyYNrH0V69q358 jauqz4FPsiJupLXJhNDM7QPQFJyK9wQFR540FECz7aKU+tpd+4RKlouUNbShrWOf6jfu VUbfs69YDRcbNJqBrvvzamVIHsfyXGZJd/GoZnZFlVWK3+Cp/QHJCntCr7xLI+MRI18I Ct0C2NJ2iw2kWhNgUVUyoAI79Pg6kgEF+Jf0aEMDE1gWGTa0MmS/SLlzj0GjJ1lrhVO6 /0fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GBK6FHWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si13551084ejg.288.2021.03.16.08.13.59; Tue, 16 Mar 2021 08:14:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GBK6FHWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236304AbhCPJ2Y (ORCPT + 99 others); Tue, 16 Mar 2021 05:28:24 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:25202 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233380AbhCPJ2C (ORCPT ); Tue, 16 Mar 2021 05:28:02 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12G9QR2u020151; Tue, 16 Mar 2021 02:27:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=beTtpW1LAxHA1z76FxzIMnNtJUUnyxNm+MsVZEUyeIs=; b=GBK6FHWLiMUcqrDH7HEq16IklUlrx5jnswoV59Kd68k30fgfnu2ruUuCtYqUdXByZRYT CM3JrsG/4Ah2VFR0OGDhISI28poirkQXbbiDmB0jjBQMRSDn7GZ++UEWI1I/AIjIIW/g jcUFCV1lsV1TxFUH4wf1P2d4HEBZn++JszD0n/umjnbRF2lroKiZgi6kfbL8lr7l3geV hteYQQazJHx0Vs5WrBiyEOoLst8dtUZKJGGphAD2Gk4uexo6Fcayofbf78XdLTUiiVBn O0Bg77EjyuLZzZg51EcDieblA0cA/vE2COZqrpxaWwd0Ea7uuR6lt4dKaA+eCdBY2zke +g== Received: from dc6wp-exch01.marvell.com ([4.21.29.232]) by mx0a-0016f401.pphosted.com with ESMTP id 378umtfrcw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 16 Mar 2021 02:27:50 -0700 Received: from DC6WP-EXCH01.marvell.com (10.76.176.21) by DC6WP-EXCH01.marvell.com (10.76.176.21) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 05:27:48 -0400 Received: from maili.marvell.com (10.76.176.51) by DC6WP-EXCH01.marvell.com (10.76.176.21) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Mar 2021 05:27:48 -0400 Received: from hyd1soter2.marvell.com (unknown [10.29.37.45]) by maili.marvell.com (Postfix) with ESMTP id 650443F703F; Tue, 16 Mar 2021 02:27:45 -0700 (PDT) From: Hariprasad Kelam To: , CC: , , , , , , , Subject: [net PATCH 9/9] octeontx2-af: Fix uninitialized variable warning Date: Tue, 16 Mar 2021 14:57:13 +0530 Message-ID: <1615886833-71688-10-git-send-email-hkelam@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615886833-71688-1-git-send-email-hkelam@marvell.com> References: <1615886833-71688-1-git-send-email-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-16_03:2021-03-15,2021-03-16 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Subbaraya Sundeep Initialize l4_key_offset variable to fix uninitialized variable compiler warning. Fixes: b9b7421("octeontx2-af: Support ESP/AH RSS hashing") Signed-off-by: Subbaraya Sundeep Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Kovvuri Goutham --- 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 d300019..3d068b7 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c @@ -2629,7 +2629,7 @@ static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) struct nix_rx_flowkey_alg *field; struct nix_rx_flowkey_alg tmp; u32 key_type, valid_key; - int l4_key_offset; + int l4_key_offset = 0; if (!alg) return -EINVAL; -- 2.7.4