From nobody Sun Dec 22 20:49:28 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1530118090009674.8091372685551; Wed, 27 Jun 2018 09:48:10 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8F96621BADAB3; Wed, 27 Jun 2018 09:47:59 -0700 (PDT) Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DA184202E53E9 for ; Wed, 27 Jun 2018 09:47:56 -0700 (PDT) Received: from E107187.Emea.Arm.com (E107187.Emea.Arm.com [10.1.206.129]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id w5RGlpOZ009420; Wed, 27 Jun 2018 17:47:53 +0100 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.96.140; helo=cam-smtp0.cambridge.arm.com; envelope-from=sami.mujawar@arm.com; receiver=edk2-devel@lists.01.org From: Sami Mujawar To: edk2-devel@lists.01.org Date: Wed, 27 Jun 2018 17:47:46 +0100 Message-Id: <20180627164746.36188-6-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20180627164746.36188-1-sami.mujawar@arm.com> References: <20180627164746.36188-1-sami.mujawar@arm.com> Subject: [edk2] [staging/dynamictables PATCH v1 5/5] DynamicTablesPkg: Fix variable declaration X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Stephanie.Hughes-Fitt@arm.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Fixed the 'There should be no initialization of a variable as part of its declaration Variable Name' errors reported by the ecc tool. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sami Mujawar --- Notes: v1: - Fix ecc tool reported issues [SAMI] DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c |= 27 +++-- DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c |= 6 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator.c |= 6 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c |= 12 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator.c |= 125 ++++++++++---------- DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator.c |= 6 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator.c |= 6 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c |= 6 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator.c |= 6 +- 9 files changed, 113 insertions(+), 87 deletions(-) diff --git a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableMa= nagerDxe.c b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableMa= nagerDxe.c index bb1744c4ea0eaf05d0d5f356cefdab0fe6faf488..2eddd8a5af38b184af544b85f7b= ca3674667d66c 100644 --- a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDx= e.c +++ b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDx= e.c @@ -69,8 +69,8 @@ BuildAndInstallAcpiTable ( { EFI_STATUS Status; EFI_STATUS Status1; - CONST ACPI_TABLE_GENERATOR * Generator =3D NULL; - EFI_ACPI_DESCRIPTION_HEADER * AcpiTable =3D NULL; + CONST ACPI_TABLE_GENERATOR * Generator; + EFI_ACPI_DESCRIPTION_HEADER * AcpiTable; UINTN TableHandle; =20 ASSERT (TableFactoryProtocol !=3D NULL); @@ -86,6 +86,7 @@ BuildAndInstallAcpiTable ( AcpiTableInfo->TableGeneratorId )); =20 + Generator =3D NULL; Status =3D TableFactoryProtocol->GetAcpiTableGenerator ( TableFactoryProtocol, AcpiTableInfo->TableGeneratorId, @@ -123,6 +124,7 @@ BuildAndInstallAcpiTable ( return Status; } =20 + AcpiTable =3D NULL; Status =3D Generator->BuildAcpiTable ( Generator, AcpiTableInfo, @@ -214,14 +216,21 @@ VerifyMandatoryTablesArePresent ( IN UINT32 AcpiTableCount ) { - EFI_STATUS Status =3D EFI_SUCCESS; - BOOLEAN FadtFound =3D FALSE; - BOOLEAN MadtFound =3D FALSE; - BOOLEAN GtdtFound =3D FALSE; - BOOLEAN DsdtFound =3D FALSE; - BOOLEAN Dbg2Found =3D FALSE; - BOOLEAN SpcrFound =3D FALSE; + EFI_STATUS Status; + BOOLEAN FadtFound; + BOOLEAN MadtFound; + BOOLEAN GtdtFound; + BOOLEAN DsdtFound; + BOOLEAN Dbg2Found; + BOOLEAN SpcrFound; =20 + Status =3D EFI_SUCCESS; + FadtFound =3D FALSE; + MadtFound =3D FALSE; + GtdtFound =3D FALSE; + DsdtFound =3D FALSE; + Dbg2Found =3D FALSE; + SpcrFound =3D FALSE; ASSERT (AcpiTableInfo !=3D NULL); =20 while (AcpiTableCount-- !=3D 0) { diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c index b8301753d518b71264683c8f863e23bb2d86c1d8..6098db32b8746b609159d3f38bb= 0f19a890ac3ca 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c @@ -410,7 +410,8 @@ AcpiDbg2LibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&Dbg2Generator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&Dbg2Generator); DEBUG ((DEBUG_INFO, "DBG2: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); =20 @@ -433,7 +434,8 @@ AcpiDbg2LibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&Dbg2Generator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&Dbg2Generator); DEBUG ((DEBUG_INFO, "DBG2: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator.c index 7ef6e3a1d7987d20fc4fe4d8b3ea66e3303f8cc6..d2fd5096f23bedc9af6dee6b35b= 648a579ad1abb 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator.c @@ -637,7 +637,8 @@ AcpiFadtLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&FadtGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&FadtGenerator); DEBUG ((DEBUG_INFO, "FADT: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -659,7 +660,8 @@ AcpiFadtLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&FadtGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&FadtGenerator); DEBUG ((DEBUG_INFO, "FADT: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c index 2f0531f1d69f33b70280e03d02d61009244b3bea..674beff900c67406458aa05b8d9= 01f83c8fc6fc5 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c @@ -376,7 +376,7 @@ BuildGtdtTable ( { EFI_STATUS Status; UINT32 TableSize; - UINT32 PlatformTimerCount =3D 0; + UINT32 PlatformTimerCount; UINT32 WatchdogCount; UINT32 BlockTimerCount; CM_ARM_GENERIC_WATCHDOG_INFO * WatchdogInfoList; @@ -384,7 +384,7 @@ BuildGtdtTable ( EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE * Gtdt; UINT32 Idx; UINT32 GTBlockOffset; - UINT32 WatchdogOffset =3D 0; + UINT32 WatchdogOffset; =20 ASSERT (This !=3D NULL); ASSERT (AcpiTableInfo !=3D NULL); @@ -434,6 +434,7 @@ BuildGtdtTable ( )); =20 // Calculate the GTDT Table Size + PlatformTimerCount =3D 0; TableSize =3D sizeof (EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE); if (BlockTimerCount !=3D 0) { GTBlockOffset =3D TableSize; @@ -465,6 +466,7 @@ BuildGtdtTable ( )); } =20 + WatchdogOffset =3D 0; if (WatchdogCount !=3D 0) { WatchdogOffset =3D TableSize; PlatformTimerCount +=3D WatchdogCount; @@ -641,7 +643,8 @@ AcpiGtdtLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&GtdtGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&GtdtGenerator); DEBUG ((DEBUG_INFO, "GTDT: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -663,7 +666,8 @@ AcpiGtdtLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&GtdtGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&GtdtGenerator); DEBUG ((DEBUG_INFO, "GTDT: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator.c index ba33f0edc1a3e16c5ffe62d94e1a9b3c400b9281..024b96c180df915542ae0c23b5f= 0c9ff8e90bbc7 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator.c @@ -143,12 +143,11 @@ GetItsGroupNodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of ITS Group Node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_ITS_NODE); - - // Size of ITS Identifier array - Size +=3D (Node->ItsIdCount * sizeof (UINT32)); - return Size; + /* Size of ITS Group Node + + Size of ITS Identifier array + */ + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_ITS_NODE) + + (Node->ItsIdCount * sizeof (UINT32)); } =20 /** Returns the total size required for the ITS Group nodes and @@ -175,10 +174,11 @@ GetSizeofItsGroupNodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -213,17 +213,14 @@ GetNamedComponentNodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of Named Component node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_NAMED_COMP_NODE); - - // Size of ID mapping array - Size +=3D (Node->IdMappingCount * sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_T= ABLE)); - - /* Size of ASCII string + NULL termination + 'padding to - 32-bit word aligned'. + /* Size of Named Component node + + Size of ID mapping array + + Size of ASCII string + 'padding to 32-bit word aligned'. */ - Size +=3D ALIGN32 (AsciiStrLen (Node->ObjectName) + 1); - return Size; + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_NAMED_COMP_NODE) + + (Node->IdMappingCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)) + + ALIGN32 (AsciiStrSize (Node->ObjectName)); } =20 /** Returns the total size required for the Named Component nodes and @@ -250,10 +247,11 @@ GetSizeofNamedComponentNodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -289,13 +287,12 @@ GetRootComplexNodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of Root Complex node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_RC_NODE); - - // Size of ID mapping array - Size +=3D (Node->IdMappingCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); - return Size; + /* Size of Root Complex node + + Size of ID mapping array + */ + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_RC_NODE) + + (Node->IdMappingCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); } =20 /** Returns the total size required for the Root Complex nodes and @@ -322,10 +319,11 @@ GetSizeofRootComplexNodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -361,21 +359,18 @@ GetSmmuV1V2NodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of SMMU v1/SMMU v2 node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_NODE); - - // Size of ID mapping array - Size +=3D (Node->IdMappingCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); - - // Size of context interrupt array - Size +=3D (Node->ContextInterruptCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_INT)); - - // Size of PMU interrupt array - Size +=3D (Node->PmuInterruptCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_INT)); - return Size; + /* Size of SMMU v1/SMMU v2 node + + Size of ID mapping array + + Size of context interrupt array + + Size of PMU interrupt array + */ + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_NODE) + + (Node->IdMappingCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)) + + (Node->ContextInterruptCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_INT)) + + (Node->PmuInterruptCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU_INT)); } =20 /** Returns the total size required for the SMMUv1/SMMUv2 nodes and @@ -402,10 +397,11 @@ GetSizeofSmmuV1V2Nodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -440,13 +436,12 @@ GetSmmuV3NodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of SMMU v1/SMMU v2 node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU3_NODE); - - // Size of ID mapping array - Size +=3D (Node->IdMappingCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); - return Size; + /* Size of SMMU v1/SMMU v2 node + + Size of ID mapping array + */ + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_SMMU3_NODE) + + (Node->IdMappingCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); } =20 /** Returns the total size required for the SMMUv3 nodes and @@ -473,10 +468,11 @@ GetSizeofSmmuV3Nodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -511,13 +507,12 @@ GetPmcgNodeSize ( { ASSERT (Node !=3D NULL); =20 - // Size of PMCG node - UINT32 Size =3D sizeof (EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE); - - // Size of ID mapping array - Size +=3D (Node->IdMappingCount * - sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); - return Size; + /* Size of PMCG node + + Size of ID mapping array + */ + return sizeof (EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE) + + (Node->IdMappingCount * + sizeof (EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE)); } =20 /** Returns the total size required for the PMCG nodes and @@ -544,10 +539,11 @@ GetSizeofPmcgNodes ( IN OUT IORT_NODE_INDEXER ** CONST NodeIndexer ) { - UINT32 Size =3D 0; + UINT32 Size; =20 ASSERT (NodeList !=3D NULL); =20 + Size =3D 0; while (NodeCount-- !=3D 0) { (*NodeIndexer)->Token =3D NodeList->Token; (*NodeIndexer)->Object =3D (VOID*)NodeList; @@ -650,10 +646,12 @@ AddIdMappingArray ( EFI_STATUS Status; CM_ARM_ID_MAPPING * IdMappings; UINT32 IdMappingCount; - ACPI_IORT_GENERATOR * Generator =3D (ACPI_IORT_GENERATOR*)This; + ACPI_IORT_GENERATOR * Generator; =20 ASSERT (IdMapArray !=3D NULL); =20 + Generator =3D (ACPI_IORT_GENERATOR*)This; + // Get the Id Mapping Array Status =3D GetEArmObjIdMapping ( CfgMgrProtocol, @@ -1351,10 +1349,11 @@ AddPmcgNodes ( EFI_STATUS Status; EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE * PmcgNode; EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE * IdMapArray; - ACPI_IORT_GENERATOR * Generator =3D (ACPI_IORT_GENERATO= R*)This; + ACPI_IORT_GENERATOR * Generator; =20 ASSERT (Iort !=3D NULL); =20 + Generator =3D (ACPI_IORT_GENERATOR*)This; PmcgNode =3D (EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE*)((UINT8*)Iort + NodesStartOffset); =20 @@ -2025,7 +2024,8 @@ AcpiIortLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&IortGenerator.Header= ); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&IortGenerator.Header); DEBUG ((DEBUG_INFO, "IORT: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -2047,7 +2047,8 @@ AcpiIortLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&IortGenerator.Head= er); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&IortGenerator.Header); DEBUG ((DEBUG_INFO, "Iort: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator.c index 6fa45357ea3c888d1fe35565a35cc074c6967478..bdf902c4c859a29e63a84316614= c9e7a29178b93 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator.c @@ -688,7 +688,8 @@ AcpiMadtLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&MadtGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&MadtGenerator); DEBUG ((DEBUG_INFO, "MADT: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -710,7 +711,8 @@ AcpiMadtLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&MadtGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&MadtGenerator); DEBUG ((DEBUG_INFO, "MADT: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator.c index 8f623a3d1821e8eabc365ca4dc20e8240df40568..80f0bea8ccfd886eab690b0ea8a= e52f1eb5f0728 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator.c @@ -313,7 +313,8 @@ AcpiMcfgLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&McfgGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&McfgGenerator); DEBUG ((DEBUG_INFO, "MCFG: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -335,7 +336,8 @@ AcpiMcfgLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&McfgGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&McfgGenerator); DEBUG ((DEBUG_INFO, "MCFG: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c= b/DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c index ca43d7d7ce2b018389a4196b0a2b80621f26e464..7cd6a088e156323463c8bb22044= 9b57ace32a7a2 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c @@ -112,7 +112,8 @@ AcpiRawLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&RawGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&RawGenerator); DEBUG ((DEBUG_INFO, "RAW: Register Generator. Status =3D %r\n", Status)); ASSERT_EFI_ERROR (Status); return Status; @@ -134,7 +135,8 @@ AcpiRawLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&RawGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&RawGenerator); DEBUG ((DEBUG_INFO, "RAW: Deregister Generator. Status =3D %r\n", Status= )); ASSERT_EFI_ERROR (Status); return Status; diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator= .c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator.c index 739784a456f23ad81ca8f3918b23adba6bb2429b..381b9e603fb730fad41990f506d= cc06127608631 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator.c @@ -295,7 +295,8 @@ AcpiSpcrLibConstructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D RegisterAcpiTableGenerator (&SpcrGenerator); + EFI_STATUS Status; + Status =3D RegisterAcpiTableGenerator (&SpcrGenerator); DEBUG ((DEBUG_INFO, "SPCR: Register Generator. Status =3D %r\n", Status)= ); ASSERT_EFI_ERROR (Status); return Status; @@ -317,7 +318,8 @@ AcpiSpcrLibDestructor ( IN EFI_SYSTEM_TABLE * CONST SystemTable ) { - EFI_STATUS Status =3D DeregisterAcpiTableGenerator (&SpcrGenerator); + EFI_STATUS Status; + Status =3D DeregisterAcpiTableGenerator (&SpcrGenerator); DEBUG ((DEBUG_INFO, "SPCR: Deregister Generator. Status =3D %r\n", Statu= s)); ASSERT_EFI_ERROR (Status); return Status; --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel