From f122c6f639cd3babedc0dd9b38b279d94b087c7a Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Tue, 2 Jul 2024 19:20:38 -0400 Subject: MdeModulePkg/RuntimeResetSystemLib: Make global static Makes the `mInternalRT` global static in this library instance to avoid conflicting with other code such as a global variable with the same name in MdePkg/Library/UefiRuntimeLib. Signed-off-by: Michael Kubacki --- MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c b/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c index 59b5c2b9d8..8e9f63246e 100644 --- a/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c +++ b/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c @@ -12,8 +12,8 @@ #include #include -EFI_EVENT mRuntimeResetSystemLibVirtualAddressChangeEvent; -EFI_RUNTIME_SERVICES *mInternalRT; +EFI_EVENT mRuntimeResetSystemLibVirtualAddressChangeEvent; +static EFI_RUNTIME_SERVICES *mInternalRT; /** This function causes a system-wide reset (cold reset), in which -- cgit