]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PerformanceLib: Fix GCC build failure caused by cfb0aba
authorStar Zeng <star.zeng@intel.com>
Fri, 24 Feb 2017 01:51:37 +0000 (09:51 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 24 Feb 2017 08:33:26 +0000 (16:33 +0800)
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c

index 1564514518d3a5475a1812df5a24c7541831c86d..51f488af6c14d91f4372049655e05dcfc6d5ec61 100644 (file)
@@ -535,7 +535,7 @@ DxeCorePerformanceLibConstructor (
 \r
   InternalGetPeiPerformance ();\r
 \r
 \r
   InternalGetPeiPerformance ();\r
 \r
-  Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, &PerformanceProperty);\r
+  Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, (VOID **) &PerformanceProperty);\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Install configuration table for performance property.\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Install configuration table for performance property.\r
index a03a8c8dcc4679d5d93533e5f32db13f319c6762..cd1f1a5d5f6627e0f182238265d3dbe874a2edd5 100644 (file)
@@ -16,7 +16,7 @@
 \r
  SmmPerformanceHandlerEx(), SmmPerformanceHandler() will receive untrusted input and do basic validation.\r
 \r
 \r
  SmmPerformanceHandlerEx(), SmmPerformanceHandler() will receive untrusted input and do basic validation.\r
 \r
-Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -729,7 +729,7 @@ InitializeSmmCorePerformanceLib (
   Status = gSmst->SmiHandlerRegister (SmmPerformanceHandlerEx, &gSmmPerformanceExProtocolGuid, &Handle);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   Status = gSmst->SmiHandlerRegister (SmmPerformanceHandlerEx, &gSmmPerformanceExProtocolGuid, &Handle);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, &PerformanceProperty);\r
+  Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, (VOID **) &PerformanceProperty);\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Install configuration table for performance property.\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Install configuration table for performance property.\r