From 9896a9c61836a5afba72c47d7c64f4e24f0805ba Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Tue, 15 Aug 2023 23:50:33 +0800 Subject: SecurityPkg/Tpm2DeviceLibTcg2: Make mTcg2Protocol static The global variable has a common name that can conflict with other TCG modules. For example, Tcg2Dxe has a similarly named global that is of type EFI_TCG2_PROTOCOL instead of EFI_TCG2_PROTOCOL*. Cc: Jiewen Yao Cc: Jian J Wang Signed-off-by: Michael Kubacki Reviewed-by: Jiewen Yao --- SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SecurityPkg') diff --git a/SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c b/SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c index 3c8cf4fa11..c792b1d67b 100644 --- a/SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c +++ b/SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c @@ -14,7 +14,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include -EFI_TCG2_PROTOCOL *mTcg2Protocol = NULL; +STATIC EFI_TCG2_PROTOCOL *mTcg2Protocol = NULL; /** This service enables the sending of commands to the TPM2. -- cgit v1.2.3