]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/PciSegmentInfoLib: Add missing EFIAPI to GetPciSegmentInfo()
authorRay Ni <ray.ni@intel.com>
Wed, 3 Jun 2020 09:42:23 +0000 (17:42 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 24 Jun 2020 05:46:27 +0000 (05:46 +0000)
All public APIs should have EFIAPI modifier. Somehow PciSegmentInfoLib
missed the EFIAPI modifier.
The patch updates the library header file and NULL instance in MdePkg
to add the missing EFIAPI.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
MdePkg/Include/Library/PciSegmentInfoLib.h
MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c

index 320a2236286e8f8870576408c52ac8bf8851ea87..659ff856497c11474d827d1057f150b24344805b 100644 (file)
@@ -3,7 +3,7 @@
 \r
   This library is consumed by PciSegmentLib to support multiple segment PCI configuration access.\r
 \r
-  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -28,6 +28,7 @@ typedef struct {
   @retval A callee owned array holding the segment information.\r
 **/\r
 PCI_SEGMENT_INFO *\r
+EFIAPI\r
 GetPciSegmentInfo (\r
   UINTN  *Count\r
   );\r
index f9019c4e6461d24b70a902434573777ad20308ff..3ec77840570a2fefee637cc1147f7f26bab844a2 100644 (file)
@@ -2,7 +2,7 @@
   Default PCI Segment Information Library that returns one segment whose\r
   segment base address equals to PcdPciExpressBaseAddress.\r
 \r
-  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -21,6 +21,7 @@
   @retval A callee owned array holding the segment information.\r
 **/\r
 PCI_SEGMENT_INFO *\r
+EFIAPI\r
 GetPciSegmentInfo (\r
   UINTN  *Count\r
   )\r