From nobody Tue Feb 10 03:44:36 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+69099+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1608210354652182.00929179007142; Thu, 17 Dec 2020 05:05:54 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id OFDXYY1788612xemLKT2VVWS; Thu, 17 Dec 2020 05:05:50 -0800 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.40]) by mx.groups.io with SMTP id smtpd.web08.7551.1608210346518982046 for ; Thu, 17 Dec 2020 05:05:46 -0800 X-Received: from DB9PR02CA0014.eurprd02.prod.outlook.com (2603:10a6:10:1d9::19) by AM0PR08MB5314.eurprd08.prod.outlook.com (2603:10a6:208:184::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Thu, 17 Dec 2020 13:05:44 +0000 X-Received: from DB5EUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d9:cafe::a9) by DB9PR02CA0014.outlook.office365.com (2603:10a6:10:1d9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Thu, 17 Dec 2020 13:05:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+69099+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT006.mail.protection.outlook.com (10.152.20.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Thu, 17 Dec 2020 13:05:44 +0000 X-Received: ("Tessian outbound 39646a0fd094:v71"); Thu, 17 Dec 2020 13:05:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8bb42f3da36c7636 X-CR-MTA-TID: 64aa7808 X-Received: from c2345bab18ab.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id AF33730A-C9EC-4E77-ADAD-D1BDCC7D79F1.1; Thu, 17 Dec 2020 13:05:38 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c2345bab18ab.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Dec 2020 13:05:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlJU29hfTvZ4qIewhhE1Phpr+Gwb/4OAHXy6Vyf5FOGF80WfUoiquiJfbjrasmWEF6mufGJF6oPZtmVtyRbuoLpW9Ehwbw13pzPQJ2mnVv1v1xoWny3eZt39GwiMTM2UB32tStC2oewej1bfgwPair3K8GBvt/yRqVULn6KGI+xMaGDCOutVDAu0i0aGYOGpEBAN+CKvBejNoF3MI2NQP9g/j3WIh8vaTTusPecdaHT0iWUbP/XjxqSk2RJjSUOZBA1Svgb+8zpAFcxFurNdrztovJl9+s29/Lo2lpHW/piKY2dNFCm/9ZOBEXDtW1jZrLy0E2+9dcaN7n6+9vdZvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EKEIQTYt22fk5tTrJ3QOELhfA6aBMWy7aaFYTLW305g=; b=O/kmiNsFiE9XIQe6bHE87kRPpi8f9UFC3izpWqHUIzLos+TGMXPQRBb5CcDkOUmoR7wS/qfzfucJSpDkPO2yt5hxWH6lXPncJB0gTEq6Ml6Fmx0bzTlF7bUa48wMmtsLJ2lLdzihpnTHl9GAISaPiDy9kElb30FFRPwHMExh1rkSiiw69B5NQssFAivYbTfqOM1gLyHZl0zRVqMUpZeWTMiqZa+NfgCHgjFoNDpSgM5oCFjrhR1bplNr8SeZ3d6YSy/TYoC2UzPfmHb6xTyQXwfO20GIUVMW0meE57JtcC+a5Fx/V5a6OFqBEOXyUyABREd0ClSREIFBTYYs7AZG4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB9PR01CA0027.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::32) by VI1PR08MB4415.eurprd08.prod.outlook.com (2603:10a6:803:fa::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Thu, 17 Dec 2020 13:05:33 +0000 X-Received: from DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d8:cafe::22) by DB9PR01CA0027.outlook.office365.com (2603:10a6:10:1d8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.18 via Frontend Transport; Thu, 17 Dec 2020 13:05:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT061.mail.protection.outlook.com (10.152.21.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3676.22 via Frontend Transport; Thu, 17 Dec 2020 13:05:33 +0000 X-Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Thu, 17 Dec 2020 13:05:17 +0000 X-Received: from E107187.Arm.com (10.57.33.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Thu, 17 Dec 2020 13:05:16 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [PATCH v2 10/26] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCore Date: Thu, 17 Dec 2020 13:04:53 +0000 Message-ID: <20201217130509.12568-11-sami.mujawar@arm.com> In-Reply-To: <20201217130509.12568-1-sami.mujawar@arm.com> References: <20201217130509.12568-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fe9f49a0-5e72-44eb-bb16-08d8a28c76ab X-MS-TrafficTypeDiagnostic: VI1PR08MB4415:|AM0PR08MB5314: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:538;OLM:538; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dDta4c1IM3zokomHuuwn1/RYD1o20hDOERoQU811tTseWMUT/QH6pheI8j96zWnx71lXV3cPFmt6RsP5dlI/AwcvPHtP/G6KdfP2GSM/IIbVwkWKuH6ihmMAwXvxu0GT+gT/pYlIIcIeRo9rnAoinlcNmxSZVIxI7lefhD3B7UD1vXYtkzs6ab40J97LE/4cHt+wYdWtS0Bn4i5POox5DX0926n8LSm8SBWrtmPStDMEqHB+3KyVodTKFObiyWIfkH7miQPARHo9Fjt5S+v3bo52fWHhWT5NyF2D3eh7dxS1SiyW+37BKkOzS/JE92bz0gdV4+c9eQQY7us3KFCB/raH6yJaQcvrfd7JnwfM6Y3uu+PMt5M6lyFiaHwuMUPTxWs0PP4ACFrqlR2KzvcYbw== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(6029001)(4636009)(346002)(136003)(396003)(376002)(39860400002)(46966005)(4326008)(7696005)(86362001)(316002)(6916009)(336012)(5660300002)(2616005)(44832011)(186003)(82310400003)(1076003)(426003)(81166007)(70586007)(356005)(26005)(2906002)(6666004)(478600001)(82740400003)(54906003)(70206006)(36756003)(8936002)(8676002)(83380400001)(47076004);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4415 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 4d6331a8-7971-4196-6358-08d8a28c6ffb X-Microsoft-Antispam-Message-Info: gO/C/vJSyNZ4Y3gvfY0vhBl/aj7/Cb4uBq6zNtwT+IbyW/bJU1dFD1Ko9ypl7hurKVeE/86yF5i9Xp09Cjr4lWgshzEJaWwznlpE/zwtCGPfQJUIfKv7C9FoQdib87QgjNclG8/uG09PLHgilr+wuRxLzbPo4bgVVFtII1srgRe1CfWZY3QlZwR5EJDEQS4w6fHApFO3TkVLd/vzMjMgvnF/V9kq1fIZim/vpGdy8wCteAVGfII63voyhFJkuCeXd6M1NZO1G7vWwz/CTMlKymO0Cfj/uHFjxqOu40cKSCgSrAOUdhgIaDISqNFkA/ygfePCin4QmnDmgQqTawNN0FQyn3UjvfgHUKBkh/fzMnLSIyUsygL/pofxHxaYRj0sxCm+AkrDWnvOakAVoTuVnA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2020 13:05:44.2932 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe9f49a0-5e72-44eb-bb16-08d8a28c76ab X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5314 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com X-Gm-Message-State: 0eDHv8U27Di0QzdPXMzhM40Ax1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1608210350; bh=Xij1blQOmoBWdn2qg6gHO6kJvsdA3NaaRhswtZ5gSLk=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=JMkEFh2e4DGNYvKfiQdalskOtQOoObObNiq16RTdrjALyEkQp5+3aIA/xhp24Yd9tyX A+cwVds4r+KrsVGA3clwKKl6WxNE/XRDmOQvTq5Z1yXSr0qQnJTVf2cUH9C//53VgLbmp JvCXAbZ9F5b/vAAjsw4mLDF30XyaiyYtqVc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix ECC error "[5007] There should be no initialization of a variable as part of its declaration Variable." Signed-off-by: Sami Mujawar Acked-by: Jiewen Yao --- Notes: v2: - No code change. Resending patch with v2 series. [SAMI] StandaloneMmPkg/Core/StandaloneMmCore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core= /StandaloneMmCore.c index 0b3ddbaa6a35e2e609f737a39ace62c2406bf8df..803d7605ece7f6a3400866a04e3= 9acf74cda8144 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.c +++ b/StandaloneMmPkg/Core/StandaloneMmCore.c @@ -149,9 +149,10 @@ MmExitBootServiceHandler ( ) { EFI_HANDLE MmHandle; - EFI_STATUS Status =3D EFI_SUCCESS; + EFI_STATUS Status; STATIC BOOLEAN mInExitBootServices =3D FALSE; =20 + Status =3D EFI_SUCCESS; if (!mInExitBootServices) { MmHandle =3D NULL; Status =3D MmInstallProtocolInterface ( @@ -187,9 +188,10 @@ MmReadyToBootHandler ( ) { EFI_HANDLE MmHandle; - EFI_STATUS Status =3D EFI_SUCCESS; + EFI_STATUS Status; STATIC BOOLEAN mInReadyToBoot =3D FALSE; =20 + Status =3D EFI_SUCCESS; if (!mInReadyToBoot) { MmHandle =3D NULL; Status =3D MmInstallProtocolInterface ( --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#69099): https://edk2.groups.io/g/devel/message/69099 Mute This Topic: https://groups.io/mt/79035542/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-