]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DynamicTablesPkg: SRAT: Fix entry points
authorSami Mujawar <sami.mujawar@arm.com>
Mon, 18 Nov 2019 16:30:16 +0000 (16:30 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 31 Mar 2020 21:22:39 +0000 (21:22 +0000)
VS2017 reports 'warning C4028: formal parameter 2 different
from declaration' for the library constructor and destructor
interfaces for the SRAT Generator modules.

Remove the CONST qualifier for the ImageHandle and the
SystemTable pointer in the library constructor and destructor
to make it compatible with the formal declaration.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c

index 5d56af66608d862e6eca81da812d719f110867d2..74cb7d92a5d8cddd3df8334f3ab55e6fa3e7267a 100644 (file)
@@ -800,8 +800,8 @@ ACPI_TABLE_GENERATOR SratGenerator = {
 EFI_STATUS\r
 EFIAPI\r
 AcpiSratLibConstructor (\r
-  IN CONST EFI_HANDLE                ImageHandle,\r
-  IN       EFI_SYSTEM_TABLE  * CONST SystemTable\r
+  IN  EFI_HANDLE           ImageHandle,\r
+  IN  EFI_SYSTEM_TABLE  *  SystemTable\r
   )\r
 {\r
   EFI_STATUS  Status;\r
@@ -823,8 +823,8 @@ AcpiSratLibConstructor (
 EFI_STATUS\r
 EFIAPI\r
 AcpiSratLibDestructor (\r
-  IN CONST EFI_HANDLE                ImageHandle,\r
-  IN       EFI_SYSTEM_TABLE  * CONST SystemTable\r
+  IN  EFI_HANDLE           ImageHandle,\r
+  IN  EFI_SYSTEM_TABLE  *  SystemTable\r
   )\r
 {\r
   EFI_STATUS  Status;\r