From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.85]) by mx.groups.io with SMTP id smtpd.web12.7709.1608210372470195880 for ; Thu, 17 Dec 2020 05:06:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=cUgfEfg0; spf=pass (domain: arm.com, ip: 40.107.22.85, 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=mBJgvfNfkQkFiFrnKZLvQgpRcQUAxT7Cki+heFHzRUU=; b=cUgfEfg0h4Av80XQzoo2MraRphTh8Ib0F8HZZQETvEtRmzqxciip2EmD1o5Oh+3vGiDDpGEm5zm+c/fb2BK+jgu2K2r661fhyIvNvLzgNbrsrvj648W1OB34IRCDOB/YWugPJwpFD3XFGklzKqC6ZSqIbdPe5YF8bQCSxV+O47M= Received: from DB6PR0601CA0042.eurprd06.prod.outlook.com (2603:10a6:4:17::28) by AM8PR08MB5793.eurprd08.prod.outlook.com (2603:10a6:20b:1d8::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:06:10 +0000 Received: from DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:17:cafe::16) by DB6PR0601CA0042.outlook.office365.com (2603:10a6:4:17::28) 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:06:09 +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 DB5EUR03FT047.mail.protection.outlook.com (10.152.21.232) 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:06:09 +0000 Received: ("Tessian outbound 665ba7fbdfd9:v71"); Thu, 17 Dec 2020 13:06:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2c4666669d034421 X-CR-MTA-TID: 64aa7808 Received: from df9563319b93.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 61DAAE8A-587B-42E7-88FE-8C70BDA45A00.1; Thu, 17 Dec 2020 13:05:32 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id df9563319b93.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Dec 2020 13:05:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WMO+Uu7lfhRpqUmOqJqTnKcfOTgo466XDRrr8UiBVytEbpbGZPxaxiuhC0jiijY1Yyvbe79Sn320sjty2MDIYuZW8PclKPct6zGkxGld9Ij2OtLJgh8sx4T0XMWGOCENnIcCCCxFew/LAeeYOjCkUqeEzEIaOnWoRfVsIrtjfp6zeDg0mQR8m+PdqAFYYjpG7DgoihnZxeDL1Ci9QBEfdJnhEiag5KK6p3WddtYzaYhElEdxxiPpN6RRFDiYibwVPxvkbuuw+SrMAxRx6u9x2sMEbqq7goTwTA+essLiQnaAc40KjnuIqclcs1gjldFdkIEg+M67HIbEXYwPqlVSww== 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=mBJgvfNfkQkFiFrnKZLvQgpRcQUAxT7Cki+heFHzRUU=; b=Yl4ArDkrp/qqgUY9yE4EFMQ6zm++Q43fGycb23uQss1fLNmze2GREH3JKg9NVVakO2twqYKAWaSZw5OIhrO+xn3uI2V0d1LpvlEZwDc5Gh7eGyRW9ACrqSuyejV862hc+o46+5E7s/RmDyeYWj9C41h1XL9Ue0WzcKQ1rRZH2EEaeRBnmDqvXLv9vQHy/3ZAYV2gJMkALW9OkeBeJSSYXrWhZenGLSvbNO/OVJOJQk8NdP5fUBK6u30eaAgYWdSrSPwYJLoY01BcQE3DG73jEMi8J0E9baQe9EkC248PuVyGhp0ZE9v9BM6oqtYqwrasT5feXTGTc3MAtF5DbwdtjA== 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=mBJgvfNfkQkFiFrnKZLvQgpRcQUAxT7Cki+heFHzRUU=; b=cUgfEfg0h4Av80XQzoo2MraRphTh8Ib0F8HZZQETvEtRmzqxciip2EmD1o5Oh+3vGiDDpGEm5zm+c/fb2BK+jgu2K2r661fhyIvNvLzgNbrsrvj648W1OB34IRCDOB/YWugPJwpFD3XFGklzKqC6ZSqIbdPe5YF8bQCSxV+O47M= Received: from DB9PR01CA0020.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::25) by VI1PR08MB3888.eurprd08.prod.outlook.com (2603:10a6:803:b8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.14; Thu, 17 Dec 2020 13:05:30 +0000 Received: from DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d8:cafe::f5) by DB9PR01CA0020.outlook.office365.com (2603:10a6:10:1d8::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17 via Frontend Transport; Thu, 17 Dec 2020 13:05:30 +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 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:30 +0000 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:16 +0000 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:15 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [PATCH v2 08/26] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCoreEntryPoint Date: Thu, 17 Dec 2020 13:04:51 +0000 Message-ID: <20201217130509.12568-9-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 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: 2ffacec0-809e-4ac0-1091-08d8a28c85d8 X-MS-TrafficTypeDiagnostic: VI1PR08MB3888:|AM8PR08MB5793: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:510;OLM:510; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: zPdx3A03PB76My3sxRSOIX/zYcrkhK7kwtIHbmIg7CCu+BYoyQFQ9gWEHh+Gk8xa2htkOos6sK2nDCRCTVTygLwrMB8kFZw4xaAdv0WAwHokAgVnnJneC4f0KX3qvDEPcHte+SL9gpCe2xPxNNZrMWQ34UE/AkucpTLGqztY7VQLNLtL4OBJhY9MkHYBs3/vklZJBSINSnNuZGLJ7MnQ+5pvHuVwZ+ZE0fT8yT7LzY4TCt/PQQUtwtp+8kIe2FocFLi5OfTXbSudqMQL3Wq/fRIBI3IpWQoEfbTNBKHkKX5Y30IDEiwkcvT/dZqjb32zenU06quMijDoTjGiRDM56wvGqlheV1kCT0dX9CjYyqrxx1eNdXV/5YM8vwpzoHhska4AaYcSkuheMgVLZB64Kg== 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)(39850400004)(346002)(396003)(376002)(136003)(46966005)(47076004)(1076003)(82310400003)(86362001)(8936002)(26005)(83380400001)(356005)(70206006)(8676002)(7696005)(6916009)(316002)(336012)(426003)(36756003)(6666004)(4326008)(2906002)(82740400003)(478600001)(81166007)(2616005)(5660300002)(54906003)(44832011)(70586007)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3888 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 0246c95a-490f-49d5-1a50-08d8a28c6e98 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QASjF//FpYD+izOOtyi9EffWkUW+aX2w41wW1Em2T+dSEySjVb1ftBymFGC/WQhqkKV+jpdMnKDgRupE8uN2mWOOqR7/W0JxHGYkq4nRrAM6+wj0rChzhGaNFN8zxKZZUQKfUfP3SM2gK7tPvplT0U+X0FbbsDBzMna6kFyx3+s031z12XPzevytAG5IJgZJGQ0/tP1c18kg6niRNOWSu42vhWh5Orl6jbwCBeX48HxKaGIbxH5yrVnZzSqmzvoAjY9yhYMPMAQDtYdcP+T+2RCuuUeBZP16RIxnvYUCO4LoKz/NDlG5ob0miuO+ks2Z0wkhD5o8knsXG5Qc2E9s0s0/lTpbaBQjrtF5FFQykKI4dXaNQ/gOjBL1Hqh/jBbIX4tcnD9aTczUYq+/3wFLKQ== 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)(136003)(376002)(346002)(39860400002)(396003)(46966005)(6666004)(336012)(86362001)(36756003)(8936002)(2616005)(83380400001)(82740400003)(2906002)(316002)(4326008)(26005)(44832011)(5660300002)(6916009)(54906003)(7696005)(426003)(1076003)(8676002)(81166007)(47076004)(82310400003)(478600001)(70206006)(186003)(70586007);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2020 13:06:09.7516 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ffacec0-809e-4ac0-1091-08d8a28c85d8 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: DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5793 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 Acked-by: Jiewen Yao --- Notes: v2: - No code change. Resending patch with v2 series. [SAMI] StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c index bf9650d546291f6d449249d4f0577278a93adb24..0ab6edaeb7f05bc814281d0e928305804633e970 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c @@ -2,7 +2,7 @@ Locate, get and update PE/COFF permissions during Standalone MM Foundation Entry point on ARM platforms. -Copyright (c) 2017 - 2018, ARM Ltd. All rights reserved.
+Copyright (c) 2017 - 2020, Arm Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -121,9 +121,10 @@ LocateStandaloneMmCorePeCoffData ( IN OUT UINTN *TeDataSize ) { - EFI_FFS_FILE_HEADER *FileHeader = NULL; + EFI_FFS_FILE_HEADER *FileHeader; EFI_STATUS Status; + FileHeader = NULL; Status = FfsFindNextFile ( EFI_FV_FILETYPE_SECURITY_CORE, BfvAddress, -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'