From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (EUR03-AM5-obe.outbound.protection.outlook.com [40.107.3.61]) by mx.groups.io with SMTP id smtpd.web09.455.1607539661870996868 for ; Wed, 09 Dec 2020 10:47:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=SmMl8kg2; spf=pass (domain: arm.com, ip: 40.107.3.61, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5MMM0UiAbwQeFnLLZrykHrD/OT1OHm5vM3w4fBBnjQw=; b=SmMl8kg2zH2+ABpufkd+r+VmQh/aYPGbaynXx+AtClOi1i8XWVqiQndsaczVLmb99yYH3wQmc8Q2bQ5ye/PUZmOWEmXK5O8F6tmWoHO4n3HrRTpb8eH+A8anIJ+bDb32pOutgcF4uwJkPxM7Y9W1/yrbY5Wr8Z/2l26m4t4/wxk= Received: from DB7PR05CA0027.eurprd05.prod.outlook.com (2603:10a6:10:36::40) by AM9PR08MB5921.eurprd08.prod.outlook.com (2603:10a6:20b:2d4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Wed, 9 Dec 2020 18:47:39 +0000 Received: from DB5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:36:cafe::e3) by DB7PR05CA0027.outlook.office365.com (2603:10a6:10:36::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:39 +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 (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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT033.mail.protection.outlook.com (10.152.20.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:39 +0000 Received: ("Tessian outbound 39646a0fd094:v71"); Wed, 09 Dec 2020 18:47:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4f8123d2821f496e X-CR-MTA-TID: 64aa7808 Received: from 0cc473822b40.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A2FC473C-6520-40F5-9C3A-1C4C15BB5CCA.1; Wed, 09 Dec 2020 18:47:23 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0cc473822b40.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 09 Dec 2020 18:47:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E8UsX2sWX6YL6dOm9iKLbvMOWe+DtT/iXb+FPbtZ8Mg9RStzdb87g4wrphYi/CHdbVTNuTHvE5GnYWOJ28cNlb68gDlcUXSwHGvLJjvvRVqM2SJ3XwRCzp41wFBLgKWVrGVNICZMQNMaRIP8ViAcRCn0u6dtgaO8Kh9p7xaUEkisaEHeacseEEMFGXbfZqB9fhZ7LEvYBUUN7+Xs23Gh2PpxMjEwSANFo/F0ROKnhzUFIIp8Dfom0fPaHti7c2abqtbddWM8FXwzd60OONw+DkkxwMRVqtUP+/A/7QrQ8jtl9Yu1TiaeMfBhBW2dJ9zLhL34OiEeUt47xvhyHj28iw== 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=5MMM0UiAbwQeFnLLZrykHrD/OT1OHm5vM3w4fBBnjQw=; b=CXgH+9R0Y5x3U7jpIoxmCT6Nrom38oUgXfi5/mGJTFz3fTj1RjQKZMUsUEOQFJ7PrxdRmQ7HdTsV47AeZlE/FCXGjfJcE5sEYOJcCQqp6Pc5AUCGaLs9hWMCkJOKcugbVUMmMYOxNWW26De2jIa7xCVAnNPeaduIFbq/6p16CoKglhigdiyNvcZehwThkRotQMLhEGsMoOYYqAZrDOruyG8jNQ7WAnz6qYbkHv3IplnHYfmDQyAk/4I0Or0qmdfcB+TWhmyTAVtOfqmYIucFIb4Vv7kUjmeq0poDqk4LnEQb7uNDLt2vTk4qddblMVo2RMctQ+Yy8Kf2Rzp5nNE6Eg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5MMM0UiAbwQeFnLLZrykHrD/OT1OHm5vM3w4fBBnjQw=; b=SmMl8kg2zH2+ABpufkd+r+VmQh/aYPGbaynXx+AtClOi1i8XWVqiQndsaczVLmb99yYH3wQmc8Q2bQ5ye/PUZmOWEmXK5O8F6tmWoHO4n3HrRTpb8eH+A8anIJ+bDb32pOutgcF4uwJkPxM7Y9W1/yrbY5Wr8Z/2l26m4t4/wxk= Received: from DB6PR0501CA0020.eurprd05.prod.outlook.com (2603:10a6:4:8f::30) by DB8PR08MB5081.eurprd08.prod.outlook.com (2603:10a6:10:e5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 9 Dec 2020 18:47:22 +0000 Received: from DB5EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::f6) by DB6PR0501CA0020.outlook.office365.com (2603:10a6:4:8f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:22 +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; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT062.mail.protection.outlook.com (10.152.20.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:22 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Wed, 9 Dec 2020 18:47:17 +0000 Received: from E107187.Arm.com (10.57.26.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Wed, 9 Dec 2020 18:47:17 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v1 10/25] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCore Date: Wed, 9 Dec 2020 18:46:55 +0000 Message-ID: <20201209184710.20912-11-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20201209184710.20912-1-sami.mujawar@arm.com> References: <20201209184710.20912-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: dfbfbe88-feec-4663-26a3-08d89c72e750 X-MS-TrafficTypeDiagnostic: DB8PR08MB5081:|AM9PR08MB5921: 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: J1BlHUtcvABn51BmHVDWSSGApRjvWN5JOpyZ+/6t48MwMsw9bNMiVnK4Med1zROJ4Dz8enSgFHb67cf+d4z75ywkgEGC0dKFlmIBHAeDJCRamR9AQXMImjD5kw+1Ax1eP13vXQoq/jQN30k1ZAlEqMspNPfd9Hhg2aZAE+ducw431gcZS/Uh4VrBT1jGkkVGIzH9wwT9mnvNYIrxl3+MU0RA0YUxAi6ees3CrEu8YMebSZpbLaHXDX00iaUe20VuIb5OKZxI4NOQjKVYQiZeXC9A0JcP8VLAfI6a2cBfDllZOJFH3Lnk9ITbRH/1bLhRepRuHuq878fTtifu9M47pmdWGK6E8mzfQMfE1J63WJXiYVeLt1C0vHAeKvcAf/frYpq8VRk8HqPqtSOUrcHCfg== 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)(376002)(46966005)(336012)(426003)(6916009)(44832011)(2616005)(508600001)(186003)(83380400001)(54906003)(356005)(81166007)(7696005)(26005)(47076004)(8936002)(1076003)(36756003)(4326008)(82310400003)(70206006)(2906002)(6666004)(70586007)(86362001)(8676002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5081 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 48036ce0-606d-4990-830a-08d89c72dd1a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DXp8b9k6mY+gA8NbzUDZqjs57U4F1nhu/I+FeBXHV4I4QtcR8tBPvKAmrqh4+bVbKzDOvk1pTiysQXQPADwjZaTNgpUEx+ABB2KCv+QhW9HzNzbLYrWQbyt1apGV65ZNNfeGon4mjhqBxrSQ/CssBV41Bm4H/AmRfZ4CLhlmf/57G3qtMyNuT18PJV79ZaWWMZPG1i5f5UhoxBXqsNyRWBFv/5IJDOy+x9Aqz5ibOj43wsnMHwedzMPflot1pbnO7tMQaosjBdk6dJpZJCSbsvLxlam7wLMtIEGD9z54dvYD2WrZqNbvQ+ojS1IBLmNKtFejs2v09s/zbdzHxgSD/hUL74HIGNlN2F0ggViCNd/UwYlOqoeHhGn1u8zkIRIu/GPB9FJqskUBoN67jpqXag== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(6029001)(4636009)(346002)(376002)(136003)(46966005)(8676002)(47076004)(26005)(8936002)(83380400001)(82310400003)(426003)(81166007)(7696005)(508600001)(6916009)(2906002)(2616005)(86362001)(1076003)(70206006)(44832011)(5660300002)(6666004)(4326008)(36756003)(186003)(336012)(54906003)(70586007);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 18:47:39.3839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dfbfbe88-feec-4663-26a3-08d89c72e750 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: DB5EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5921 Content-Type: text/plain Fix ECC error "[5007] There should be no initialization of a variable as part of its declaration Variable." Signed-off-by: Sami Mujawar --- 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..803d7605ece7f6a3400866a04e39acf74cda8144 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.c +++ b/StandaloneMmPkg/Core/StandaloneMmCore.c @@ -149,9 +149,10 @@ MmExitBootServiceHandler ( ) { EFI_HANDLE MmHandle; - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; STATIC BOOLEAN mInExitBootServices = FALSE; + Status = EFI_SUCCESS; if (!mInExitBootServices) { MmHandle = NULL; Status = MmInstallProtocolInterface ( @@ -187,9 +188,10 @@ MmReadyToBootHandler ( ) { EFI_HANDLE MmHandle; - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; STATIC BOOLEAN mInReadyToBoot = FALSE; + Status = EFI_SUCCESS; if (!mInReadyToBoot) { MmHandle = NULL; Status = MmInstallProtocolInterface ( -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'