Skip to content

Commit

Permalink
MsWheaPkg: Add EFIAPI to relevant functions
Browse files Browse the repository at this point in the history
MsWheaReportHandlerPei() is passed to ReportHwErrRecRouter() for the
MS_WHEA_ERR_REPORT_PS_FN value where that is defined as:

typedef
EFI_STATUS
(EFIAPI *MS_WHEA_ERR_REPORT_PS_FN)(
  IN MS_WHEA_ERROR_ENTRY_MD           *MsWheaEntryMD
  );

So, MsWheaReportHandlerPei() needs to include EFIAPI as well.

Similarly, MsWheaRscHandlerPei() needs EFIAPI due to the definition
of EFI_PEI_RSC_HANDLER_CALLBACK.

Signed-off-by: Michael Kubacki <[email protected]>

fixup
  • Loading branch information
makubacki committed Feb 24, 2024
1 parent 456b9ef commit e5ba7e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MsWheaPkg/MsWheaReport/Pei/MsWheaReportPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Handler function that validates input arguments, and create a hob list entry for
**/
STATIC
EFI_STATUS
EFIAPI
MsWheaReportHandlerPei (
IN MS_WHEA_ERROR_ENTRY_MD *MsWheaEntryMD
)
Expand Down Expand Up @@ -95,6 +96,7 @@ for further processing.
**/
STATIC
EFI_STATUS
EFIAPI
MsWheaRscHandlerPei (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN EFI_STATUS_CODE_TYPE CodeType,
Expand Down

0 comments on commit e5ba7e0

Please sign in to comment.