[PATCH 1/2] MdePkg/PciSegmentInfoLib: Add missing EFIAPI to GetPciSegmentInfo()


Ni, Ray
 

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@...>
Cc: Michael D Kinney <michael.d.kinney@...>
Cc: Liming Gao <liming.gao@...>
Cc: Zhiguang Liu <zhiguang.liu@...>
---
MdePkg/Include/Library/PciSegmentInfoLib.h | 1 +
MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c | 1 +
2 files changed, 2 insertions(+)

diff --git a/MdePkg/Include/Library/PciSegmentInfoLib.h b/MdePkg/Include/Li=
brary/PciSegmentInfoLib.h
index 320a223628..a59644af99 100644
--- a/MdePkg/Include/Library/PciSegmentInfoLib.h
+++ b/MdePkg/Include/Library/PciSegmentInfoLib.h
@@ -28,6 +28,7 @@ typedef struct {
@retval A callee owned array holding the segment information.=0D
**/=0D
PCI_SEGMENT_INFO *=0D
+EFIAPI=0D
GetPciSegmentInfo (=0D
UINTN *Count=0D
);=0D
diff --git a/MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c b=
/MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c
index f9019c4e64..11c09506ab 100644
--- a/MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c
+++ b/MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c
@@ -21,6 +21,7 @@
@retval A callee owned array holding the segment information.=0D
**/=0D
PCI_SEGMENT_INFO *=0D
+EFIAPI=0D
GetPciSegmentInfo (=0D
UINTN *Count=0D
)=0D
--=20
2.26.2.windows.1

Join devel@edk2.groups.io to automatically receive all group messages.