diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-29 15:49:20 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-29 15:49:20 +0000 |
commit | 16d5d168328cb06d5c1435b82d0aff22a3bbab59 (patch) | |
tree | a6bf993002e05aa1359c467b050c71da802be3f7 | |
parent | a41b5272cdffba5fd9c4734d4c06c8682186d822 (diff) | |
download | edk2-platforms-16d5d168328cb06d5c1435b82d0aff22a3bbab59.tar.xz |
PerformancePkg: Fix build with GCC
Fix compiler warnings and include filename issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10902 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | PerformancePkg/Dp_App/Dp.h | 6 | ||||
-rw-r--r-- | PerformancePkg/Dp_App/DpTrace.c | 2 | ||||
-rw-r--r-- | PerformancePkg/Dp_App/DpUtilities.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/PerformancePkg/Dp_App/Dp.h b/PerformancePkg/Dp_App/Dp.h index e4c5a76d41..072ae1b983 100644 --- a/PerformancePkg/Dp_App/Dp.h +++ b/PerformancePkg/Dp_App/Dp.h @@ -76,9 +76,9 @@ typedef struct { } PERF_SUMMARY_DATA;
typedef struct {
- VOID *Handle;
- CHAR8 *Token; ///< Measured token string name.
- CHAR8 *Module; ///< Module string name.
+ CONST VOID *Handle;
+ CONST CHAR8 *Token; ///< Measured token string name.
+ CONST CHAR8 *Module; ///< Module string name.
UINT64 StartTimeStamp; ///< Start time point.
UINT64 EndTimeStamp; ///< End time point.
} MEASUREMENT_RECORD;
diff --git a/PerformancePkg/Dp_App/DpTrace.c b/PerformancePkg/Dp_App/DpTrace.c index 77939c596e..593c269f72 100644 --- a/PerformancePkg/Dp_App/DpTrace.c +++ b/PerformancePkg/Dp_App/DpTrace.c @@ -568,7 +568,7 @@ ProcessPeims( Duration = GetDuration (&Measurement);
ElapsedTime = DurationInMicroSeconds ( Duration ); // Calculate elapsed time in microseconds
if (ElapsedTime >= mInterestThreshold) {
- GetNameFromHandle (Measurement.Handle); // Name placed in mGaugeString
+ GetNameFromHandle ((EFI_HANDLE) Measurement.Handle); // Name placed in mGaugeString
PrintToken (STRING_TOKEN (STR_DP_PEIM_STAT2),
TIndex, // 1 based, Which measurement record is being printed
Measurement.Handle,
diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index dbb268a21c..1d48e1430a 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -23,7 +23,7 @@ #include <Library/PcdLib.h>
#include <Protocol/LoadedImage.h>
-#include <Protocol/Driverbinding.h>
+#include <Protocol/DriverBinding.h>
#include <Guid/Performance.h>
@@ -191,7 +191,7 @@ GetNameFromHandle ( Status = gBS->HandleProtocol (
Handle,
&gEfiLoadedImageProtocolGuid,
- &Image
+ (VOID**) &Image
);
if (EFI_ERROR (Status)) {
@@ -213,7 +213,7 @@ GetNameFromHandle ( Status = gBS->HandleProtocol (
DriverBinding->ImageHandle,
&gEfiLoadedImageProtocolGuid,
- &Image
+ (VOID**) &Image
);
}
|