[edk2-devel] [PATCH edk2-platforms 1/1] Platform/Intel: Fix type mismatches from prototypes in BoardBdsHookLib.c
Rebecca Cran
rebecca at bsdio.com
Mon May 15 05:54:21 UTC 2023
Add EFIAPI to the implementations of:
BdsBeforeConsoleAfterTrustedConsoleCallback
BdsBeforeConsoleBeforeEndOfDxeGuidCallback
BdsAfterConsoleReadyBeforeBootOptionCallback
This makes them match the prototypes, and avoids an -Wlto-type-mismatch
warning.
Signed-off-by: Rebecca Cran <rebecca at bsdio.com>
---
Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c b/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c
index e866f70bc336..bc80badb3e01 100644
--- a/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c
+++ b/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c
@@ -1273,6 +1273,7 @@ BdsReadyToBootCallback (
@param[in] Context Pointer to the context data registered to the Event.
**/
VOID
+EFIAPI
BdsBeforeConsoleAfterTrustedConsoleCallback (
IN EFI_EVENT Event,
IN VOID *Context
@@ -1294,6 +1295,7 @@ BdsBeforeConsoleAfterTrustedConsoleCallback (
@param[in] Context Pointer to the context data registered to the Event.
**/
VOID
+EFIAPI
BdsBeforeConsoleBeforeEndOfDxeGuidCallback (
IN EFI_EVENT Event,
IN VOID *Context
@@ -1311,6 +1313,7 @@ BdsBeforeConsoleBeforeEndOfDxeGuidCallback (
@param[in] Context Pointer to the context data registered to the Event.
**/
VOID
+EFIAPI
BdsAfterConsoleReadyBeforeBootOptionCallback (
IN EFI_EVENT Event,
IN VOID *Context
--
2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#104853): https://edk2.groups.io/g/devel/message/104853
Mute This Topic: https://groups.io/mt/98897921/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list