Skip to content

Commit

Permalink
MdePkg/PciSegmentInfoLib: Add missing EFIAPI to GetPciSegmentInfo()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Michael D Kinney <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
  • Loading branch information
niruiyu authored and mergify[bot] committed Jun 24, 2020
1 parent 1a99203 commit 03013d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MdePkg/Include/Library/PciSegmentInfoLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This library is consumed by PciSegmentLib to support multiple segment PCI configuration access.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
Expand All @@ -28,6 +28,7 @@ typedef struct {
@retval A callee owned array holding the segment information.
**/
PCI_SEGMENT_INFO *
EFIAPI
GetPciSegmentInfo (
UINTN *Count
);
Expand Down
3 changes: 2 additions & 1 deletion MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Default PCI Segment Information Library that returns one segment whose
segment base address equals to PcdPciExpressBaseAddress.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
Expand All @@ -21,6 +21,7 @@
@retval A callee owned array holding the segment information.
**/
PCI_SEGMENT_INFO *
EFIAPI
GetPciSegmentInfo (
UINTN *Count
)
Expand Down

0 comments on commit 03013d9

Please sign in to comment.