From 55b043732d20305c769c6243e0a9a6e1f5ae879d Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Tue, 2 Jul 2024 12:10:55 -0400 Subject: [PATCH] MdePkg/UefiDebugLibDebugPortProtocol: ExitBootServicesCallback() static REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3083 Since this is a library, make the function ExitBootServicesCallback() STATIC to prevent the likelihood that it collides with other symbols. Signed-off-by: Michael Kubacki --- .../UefiDebugLibDebugPortProtocol/DebugLibConstructor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c index 298d17c6a0..7ddecd0b62 100644 --- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c +++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c @@ -34,9 +34,10 @@ EFI_BOOT_SERVICES *mDebugBS; @param Context Pointer to the notification function's context. **/ +static VOID EFIAPI -ExitBootServicesCallback ( +UefiDebugLibDebugPortProtocolExitBootServicesCallback ( EFI_EVENT Event, VOID *Context ) @@ -67,7 +68,7 @@ DxeDebugLibConstructor ( mDebugBS->CreateEvent ( EVT_SIGNAL_EXIT_BOOT_SERVICES, TPL_NOTIFY, - ExitBootServicesCallback, + UefiDebugLibDebugPortProtocolExitBootServicesCallback, NULL, &mExitBootServicesEvent );