From e01f529efccd8c85bbb4f2d7d66470c3a281e57d Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 7 Dec 2015 09:20:20 +0000 Subject: 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 --- CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CryptoPkg/Library') 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; /** -- cgit v1.2.3