summaryrefslogtreecommitdiff
path: root/DynamicTablesPkg/Library/Acpi/Arm
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2019-11-18 16:30:16 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-31 21:22:39 +0000
commit9e7a063b07cb7c4ae803f0145d90b0227b85afd7 (patch)
tree30397338a9745987a052647b8c19af3437ec3225 /DynamicTablesPkg/Library/Acpi/Arm
parent4d9ca662048836b6f27861f28c20661f7fdea613 (diff)
downloadedk2-9e7a063b07cb7c4ae803f0145d90b0227b85afd7.zip
edk2-9e7a063b07cb7c4ae803f0145d90b0227b85afd7.tar.gz
edk2-9e7a063b07cb7c4ae803f0145d90b0227b85afd7.tar.bz2
DynamicTablesPkg: SRAT: Fix entry points
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>
Diffstat (limited to 'DynamicTablesPkg/Library/Acpi/Arm')
-rw-r--r--DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c
index 5d56af6..74cb7d9 100644
--- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c
+++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c
@@ -800,8 +800,8 @@ ACPI_TABLE_GENERATOR SratGenerator = {
EFI_STATUS
EFIAPI
AcpiSratLibConstructor (
- IN CONST EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE * CONST SystemTable
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE * SystemTable
)
{
EFI_STATUS Status;
@@ -823,8 +823,8 @@ AcpiSratLibConstructor (
EFI_STATUS
EFIAPI
AcpiSratLibDestructor (
- IN CONST EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE * CONST SystemTable
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE * SystemTable
)
{
EFI_STATUS Status;