]> git.proxmox.com Git - mirror_edk2.git/commitdiff
fix ecc report-out issues
authortding1 <tding1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Dec 2008 06:12:44 +0000 (06:12 +0000)
committertding1 <tding1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Dec 2008 06:12:44 +0000 (06:12 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6831 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Include/Ppi/Smbus.h
IntelFrameworkPkg/Include/Protocol/AcpiS3Save.h
IntelFrameworkPkg/Include/Protocol/BootScriptSave.h
IntelFrameworkPkg/Include/Protocol/LegacyBios.h
IntelFrameworkPkg/Library/DxeIoLibCpuIo/DxeIoLibCpuIo.inf
IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c
IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf
IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/InternalSmbusLib.h
IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf

index 49997e45690ff4f236f8f90b0e788116eb0fb622..e057604fd42d6603d9f67f8f814f5242c807b095 100644 (file)
@@ -19,8 +19,8 @@
 \r
 **/\r
 \r
-#ifndef _PEI_SMBUS_PPI_H\r
-#define _PEI_SMBUS_PPI_H\r
+#ifndef _PEI_SMBUS_PPI_H_\r
+#define _PEI_SMBUS_PPI_H_\r
 \r
 #include <PiPei.h>\r
 #include <Ppi/Smbus2.h>\r
index 1cc904e03dd843d54061b4c511f55dbf6edd52fe..182e388e90bba8c1b04bd881fe1958f6c43dab32 100644 (file)
@@ -14,8 +14,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _ACPI_S3_SAVE_PROTOCOL_H\r
-#define _ACPI_S3_SAVE_PROTOCOL_H\r
+#ifndef _ACPI_S3_SAVE_PROTOCOL_H_\r
+#define _ACPI_S3_SAVE_PROTOCOL_H_\r
 \r
 #include <PiDxe.h>\r
 \r
index 75ee14e6dd2c9c2d46e59928cad4065f5f63883e..7dd847022f7559d0f941b68453f0a1804a82365e 100644 (file)
@@ -16,8 +16,8 @@
 \r
 **/\r
 \r
-#ifndef _BOOT_SCRIPT_SAVE_PROTOCOL_H\r
-#define _BOOT_SCRIPT_SAVE_PROTOCOL_H\r
+#ifndef _BOOT_SCRIPT_SAVE_PROTOCOL_H_\r
+#define _BOOT_SCRIPT_SAVE_PROTOCOL_H_\r
 \r
 #include <PiDxe.h>\r
 //\r
index 76773d377b6f5f89b5c7d362ba7a68f29488ba99..5875be265d0a42d401c8bead8b76bf0cbd899a96 100644 (file)
@@ -42,7 +42,7 @@
 typedef struct _EFI_LEGACY_BIOS_PROTOCOL EFI_LEGACY_BIOS_PROTOCOL;\r
 \r
 //\r
-/// @bug: These macros appear in no specifications and are kept for backward\r
+/// @bug These macros appear in no specifications and are kept for backward\r
 //        compatibility only.\r
 // Convert from 32-bit address (_Adr) to Segment:Offset 16-bit form\r
 //\r
index a1ccb3f47bf8ef0b9d4bd4b687222908152cd854..b21f662115fdfc6aaa144194ce45ca22c5b22d3f 100644 (file)
 \r
 \r
 [LibraryClasses]\r
-  BaseLib\r
-  DebugLib\r
-  UefiBootServicesTableLib\r
-\r
 \r
 [Protocols]\r
   gEfiCpuIoProtocolGuid                         # PROTOCOL ALWAYS_CONSUMED\r
index 1a39f212884454ca4e3b7c081cf32081c5d81f80..f43db07fe6e3036b5b5c5431e5892076f4c352eb 100644 (file)
@@ -48,7 +48,7 @@ MmioReadBuffer8 (
 \r
   ReturnBuffer = Buffer;\r
 \r
-  while (Length--) {\r
+  while (Length-- > 0) {\r
     *(Buffer++) = MmioRead8 (StartAddress++);\r
   }\r
 \r
@@ -97,7 +97,7 @@ MmioReadBuffer16 (
 \r
   ReturnBuffer = Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     *(Buffer++) = MmioRead16 (StartAddress);\r
     StartAddress += sizeof (UINT16);\r
     Length -= sizeof (UINT16);\r
@@ -148,7 +148,7 @@ MmioReadBuffer32 (
 \r
   ReturnBuffer = Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     *(Buffer++) = MmioRead32 (StartAddress);\r
     StartAddress += sizeof (UINT32);\r
     Length -= sizeof (UINT32);\r
@@ -199,7 +199,7 @@ MmioReadBuffer64 (
 \r
   ReturnBuffer = Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     *(Buffer++) = MmioRead64 (StartAddress);\r
     StartAddress += sizeof (UINT64);\r
     Length -= sizeof (UINT64);\r
@@ -242,7 +242,7 @@ MmioWriteBuffer8 (
 \r
   ReturnBuffer = (UINT8 *) Buffer;\r
 \r
-  while (Length--) {\r
+  while (Length-- > 0) {\r
      MmioWrite8 (StartAddress++, *(Buffer++));\r
   }\r
 \r
@@ -293,7 +293,7 @@ MmioWriteBuffer16 (
 \r
   ReturnBuffer = (UINT16 *) Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     MmioWrite16 (StartAddress, *(Buffer++));\r
 \r
     StartAddress += sizeof (UINT16);\r
@@ -347,7 +347,7 @@ MmioWriteBuffer32 (
 \r
   ReturnBuffer = (UINT32 *) Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     MmioWrite32 (StartAddress, *(Buffer++));\r
 \r
     StartAddress += sizeof (UINT32);\r
@@ -400,7 +400,7 @@ MmioWriteBuffer64 (
 \r
   ReturnBuffer = (UINT64 *) Buffer;\r
 \r
-  while (Length) {\r
+  while (Length > 0) {\r
     MmioWrite64 (StartAddress, *(Buffer++));\r
 \r
     StartAddress += sizeof (UINT64);\r
index 4b129f6bd237b1d3ffee6160ba69b9ac7173e18a..c56bb0c55e613eec7b659b8a16f01817a012b450 100644 (file)
@@ -41,9 +41,6 @@
 \r
 \r
 [LibraryClasses]\r
-  DebugLib\r
-  UefiBootServicesTableLib\r
-  DevicePathLib\r
 \r
 [Protocols]\r
   gEfiLoadedImageProtocolGuid                   # PROTOCOL ALWAYS_CONSUMED\r
index 96597d75ad924fdaa30900824b98ebabdf230b53..3afa23240f2e1f76b98577c143aae7a26ba04936 100644 (file)
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef __INTERNAL_SMBUS_LIB_H\r
-#define __INTERNAL_SMBUS_LIB_H\r
+#ifndef _INTERNAL_SMBUS_LIB_H_\r
+#define _INTERNAL_SMBUS_LIB_H_\r
 \r
 \r
 #include <PiPei.h>\r
index fb0afa75ae56e84724bae887f75e8bcd3f22fecf..12724054e6f745229cc7f6cf1772f5d0c81cfcba 100644 (file)
 \r
 \r
 [LibraryClasses]\r
-  BaseMemoryLib\r
-  PeiServicesLib\r
-  DebugLib\r
-  PeiServicesTablePointerLib\r
 \r
 [Ppis]\r
   gEfiPeiSmbusPpiGuid                           # PPI ALWAYS_CONSUMED\r