From: Ard Biesheuvel Date: Mon, 7 Dec 2015 09:20:20 +0000 (+0000) Subject: CryptoPkg/BaseCryptLib: make mVirtualAddressChangeEvent STATIC X-Git-Tag: edk2-stable201903~8359 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e01f529efccd8c85bbb4f2d7d66470c3a281e57d;hp=8fb0d2e3fd488a045899dc2b890fc57b8d793e0b;p=mirror_edk2.git CryptoPkg/BaseCryptLib: make mVirtualAddressChangeEvent STATIC Make mVirtualAddressChangeEvent STATIC to prevent it from conflicting with other variables of the same name that may be defined in other libraries (e.g., MdeModulePkg/Universal/Variable/RuntimeDxe) This also removes the risk of mVirtualAddressChangeEvent being merged with other uninitialized variables with external linkage by toolchains that perform COMMON allocation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19146 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c index 79bb0678e3..616ee7717e 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c @@ -64,7 +64,7 @@ RT_MEMORY_PAGE_TABLE *mRTPageTable = NULL; // // Event for Runtime Address Conversion. // -EFI_EVENT mVirtualAddressChangeEvent; +STATIC EFI_EVENT mVirtualAddressChangeEvent; /**