diff options
author | Marvin Häuser <Marvin.Haeuser@outlook.com> | 2018-02-27 23:20:46 +0100 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2018-02-28 09:14:15 +0800 |
commit | b711aea87f7a31efbbd11440186c35c335e59afe (patch) | |
tree | 07c091da6b148b6cdfdef27e1d1c5da5943b801c /Platform/Intel | |
parent | 9acb51169fbd25d24ff57517e35f6bef1679d2a6 (diff) | |
download | edk2-platforms-b711aea87f7a31efbbd11440186c35c335e59afe.tar.xz |
MinPlatformPkg/TestPointCheckLib: Add missing typecasts.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'Platform/Intel')
5 files changed, 7 insertions, 7 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c index e704e8f59b..c2fe38df54 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c @@ -183,7 +183,7 @@ DumpAcpiTableHeader ( DEBUG ((DEBUG_INFO, " "));
DumpCharArray ((CHAR8 *)&Table->Signature, sizeof(Table->Signature));
DEBUG ((DEBUG_INFO, " : (0x%016lx) 0x%02x \'", Table, Table->Revision));
- DumpCharArray (Table->OemId, sizeof(Table->OemId));
+ DumpCharArray ((CHAR8 *)Table->OemId, sizeof(Table->OemId));
DEBUG ((DEBUG_INFO, "\' \'"));
DumpCharArray ((CHAR8 *)&Table->OemTableId, sizeof(Table->OemTableId));
DEBUG ((DEBUG_INFO, "\' 0x%08x \'", Table->OemRevision));
@@ -717,7 +717,7 @@ DumpAcpiRsdp ( if (DumpPrint) {
DumpCharArray ((CHAR8 *)&Rsdp->Signature, sizeof(Rsdp->Signature));
DEBUG ((DEBUG_INFO, ": (0x%016lx) 0x%02x \'", Rsdp, Rsdp->Revision));
- DumpCharArray (Rsdp->OemId, sizeof(Rsdp->OemId));
+ DumpCharArray ((CHAR8 *)Rsdp->OemId, sizeof(Rsdp->OemId));
DEBUG ((DEBUG_INFO, "\'\n"));
DEBUG ((DEBUG_INFO, " "));
DEBUG ((DEBUG_INFO, " RSDT=0x%08x XSDT=0x%016lx\n", Rsdp->RsdtAddress, Rsdp->XsdtAddress));
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckBootVariable.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckBootVariable.c index 4c622fa2d9..c50b2a5752 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckBootVariable.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckBootVariable.c @@ -135,7 +135,7 @@ TestPointCheckLoadOptionVariable ( ReturnStatus = EFI_SUCCESS;
for (ListIndex = 0; ListIndex < sizeof(mLoadOptionVariableList)/sizeof(mLoadOptionVariableList[0]); ListIndex++) {
UnicodeSPrint (BootOrderName, sizeof(BootOrderName), L"%sOrder", mLoadOptionVariableList[ListIndex]);
- Status = GetVariable2 (BootOrderName, &gEfiGlobalVariableGuid, &BootOrder, &OrderSize);
+ Status = GetVariable2 (BootOrderName, &gEfiGlobalVariableGuid, (VOID **)&BootOrder, &OrderSize);
if (EFI_ERROR(Status)) {
continue;
}
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryAttribute.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryAttribute.c index d945d6e9f1..f92a8d7f75 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryAttribute.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryAttribute.c @@ -293,7 +293,7 @@ TestPointCheckUefiMemoryAttributesTable ( Status = gBS->LocateProtocol (
&gEfiRuntimeArchProtocolGuid,
NULL,
- &RuntimeArch
+ (VOID **)&RuntimeArch
);
if (EFI_ERROR (Status)) {
return EFI_SUCCESS;
@@ -325,7 +325,7 @@ TestPointCheckUefiMemAttribute ( VOID *MemoryAttributesTable;
DEBUG ((DEBUG_INFO, "==== TestPointCheckUefiMemAttribute - Enter\n"));
- Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, &MemoryAttributesTable);
+ Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, (VOID **)&MemoryAttributesTable);
if (!EFI_ERROR (Status)) {
TestPointDumpMemoryAttributesTable(MemoryAttributesTable);
Status = TestPointCheckUefiMemoryAttributesTable(MemoryAttributesTable);
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c index 5880911a6d..d8d966366f 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c @@ -458,7 +458,7 @@ TestPointDxeSmmReadyToBootSmmPageProtection ( MemoryAttributesTable = NULL;
MemoryAttributesTableSize = 0;
- Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, &MemoryAttributesTable);
+ Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, (VOID **)&MemoryAttributesTable);
if (!EFI_ERROR (Status)) {
MemoryAttributesTableSize = sizeof(EFI_MEMORY_ATTRIBUTES_TABLE) + MemoryAttributesTable->DescriptorSize * MemoryAttributesTable->NumberOfEntries;
}
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c index ff536ae801..5f8d50e246 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c @@ -185,7 +185,7 @@ TestPointSmmReadyToLockSecureSmmCommunicationBuffer ( TestPointDumpUefiMemoryMap (&mUefiMemoryMap, &mUefiMemoryMapSize, &mUefiDescriptorSize, TRUE);
TestPointDumpGcd (&mGcdMemoryMap, &mGcdMemoryMapNumberOfDescriptors, &mGcdIoMap, &mGcdIoMapNumberOfDescriptors, TRUE);
- Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, &MemoryAttributesTable);
+ Status = EfiGetSystemConfigurationTable (&gEfiMemoryAttributesTableGuid, (VOID **)&MemoryAttributesTable);
if (!EFI_ERROR (Status)) {
MemoryAttributesTableSize = sizeof(EFI_MEMORY_ATTRIBUTES_TABLE) + MemoryAttributesTable->DescriptorSize * MemoryAttributesTable->NumberOfEntries;
mUefiMemoryAttributesTable = AllocateCopyPool (MemoryAttributesTableSize, MemoryAttributesTable);
|