From nobody Mon Feb 9 14:33:10 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+69110+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 1608210434897202.14278351431426; Thu, 17 Dec 2020 05:07:14 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Ec65YY1788612xDnaJ34ckHp; Thu, 17 Dec 2020 05:07:13 -0800 X-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 X-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 X-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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+69110+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 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 X-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 X-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 X-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 X-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 X-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; 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:30 +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:16 +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:15 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [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> 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 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-Message-Info: QASjF//FpYD+izOOtyi9EffWkUW+aX2w41wW1Em2T+dSEySjVb1ftBymFGC/WQhqkKV+jpdMnKDgRupE8uN2mWOOqR7/W0JxHGYkq4nRrAM6+wj0rChzhGaNFN8zxKZZUQKfUfP3SM2gK7tPvplT0U+X0FbbsDBzMna6kFyx3+s031z12XPzevytAG5IJgZJGQ0/tP1c18kg6niRNOWSu42vhWh5Orl6jbwCBeX48HxKaGIbxH5yrVnZzSqmzvoAjY9yhYMPMAQDtYdcP+T+2RCuuUeBZP16RIxnvYUCO4LoKz/NDlG5ob0miuO+ks2Z0wkhD5o8knsXG5Qc2E9s0s0/lTpbaBQjrtF5FFQykKI4dXaNQ/gOjBL1Hqh/jBbIX4tcnD9aTczUYq+/3wFLKQ== 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 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: 9Duq3i9nMvUnvJS8uYB2IFN1x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1608210433; bh=fGY7ehYNkfkmjTZlKg/OWuTPYp7wvR00grCCVdmjJ7s=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=mWRiWIxHJXWg3eavmrv4tl6467RT5RtM3RfHCdkmnREecYSr23xpdiEAdogKcwvGdeg rk5h0Ikl4Fyli2SIE+upSCQPL7Ma3Rin4YHNfLOe0mBBPuWKMwfMIgoMAsCS7jueqg7uD Q/J6XTupT5x55j25MFxUZBRjliuL7ihkNSM= 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/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.= c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Set= Permissions.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/= SetPermissions.c index bf9650d546291f6d449249d4f0577278a93adb24..0ab6edaeb7f05bc814281d0e928= 305804633e970 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermiss= ions.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermiss= ions.c @@ -2,7 +2,7 @@ Locate, get and update PE/COFF permissions during Standalone MM Foundation Entry point on ARM platforms. =20 -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 =20 **/ @@ -121,9 +121,10 @@ LocateStandaloneMmCorePeCoffData ( IN OUT UINTN *TeDataSize ) { - EFI_FFS_FILE_HEADER *FileHeader =3D NULL; + EFI_FFS_FILE_HEADER *FileHeader; EFI_STATUS Status; =20 + FileHeader =3D NULL; Status =3D FfsFindNextFile ( EFI_FV_FILETYPE_SECURITY_CORE, BfvAddress, --=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 (#69110): https://edk2.groups.io/g/devel/message/69110 Mute This Topic: https://groups.io/mt/79035559/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-