From 16d5d168328cb06d5c1435b82d0aff22a3bbab59 Mon Sep 17 00:00:00 2001 From: jljusten Date: Wed, 29 Sep 2010 15:49:20 +0000 Subject: 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 --- PerformancePkg/Dp_App/Dp.h | 6 +++--- PerformancePkg/Dp_App/DpTrace.c | 2 +- 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 #include -#include +#include #include @@ -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 ); } -- cgit v1.2.3