ArmPkg: Fix ARMGCC build



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12165 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c b/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
index f8d8a75..4764b42 100755
--- a/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
+++ b/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
@@ -96,7 +96,7 @@
       ((*NumberOfBytes % gCacheAlignment) != 0)) {

 

     // Get the cacheability of the region

-    Status = gDS->GetMemorySpaceDescriptor (HostAddress, &GcdDescriptor);

+    Status = gDS->GetMemorySpaceDescriptor (*DeviceAddress, &GcdDescriptor);

     if (EFI_ERROR(Status)) {

       return Status;

     }

diff --git a/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c b/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c
index e222a78..cc0d5bd 100644
--- a/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c
+++ b/EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c
@@ -196,7 +196,6 @@
   UINTN                   CmdArg;

   BOOLEAN                 IsHCS;

   EFI_MMC_HOST_PROTOCOL   *MmcHost;

-  UINTN                   CmdRetryCnt;

 

   MmcHost = MmcHostInstance->MmcHost;

   CmdArg = 0;