From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 26E027803D1 for ; Tue, 15 Aug 2023 15:51:00 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=k3d8xoIwMb8/c/V7c30ACI/tdJaLlR3mBu9Y4yNYmoQ=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692114658; v=1; b=rrVK9i6oRh+YOih2uP540L1zvc5n39doBHyekvE1wck59DEnPxfBaiMhx7GOMgqSVhBLeen4 Nc95McOUVJcli6tWyh+8Q1vOcys7zVvVFxcUcaoHO1XymhSJ9H4So4rIqGj3JwR7dYrUI4xiTKy EPzMlO4anAb3G4/TmkPfD0yA= X-Received: by 127.0.0.2 with SMTP id pSsGYY7687511xrSE5RlqkT8; Tue, 15 Aug 2023 08:50:58 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.137721.1692114658192364981 for ; Tue, 15 Aug 2023 08:50:58 -0700 X-Received: from localhost.localdomain (unknown [47.201.241.95]) by linux.microsoft.com (Postfix) with ESMTPSA id EBDC9210D871; Tue, 15 Aug 2023 08:50:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EBDC9210D871 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang Subject: [edk2-devel] [PATCH v1 1/1] SecurityPkg/Tpm2DeviceLibTcg2: Make mTcg2Protocol static Date: Tue, 15 Aug 2023 11:50:33 -0400 Message-ID: <20230815155033.1020-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: MI9RFpGNmeaRK20H9cQGUB4jx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=rrVK9i6o; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Michael Kubacki 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 --- SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c b/= SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c index 3c8cf4fa117a..c792b1d67b06 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 =20 -EFI_TCG2_PROTOCOL *mTcg2Protocol =3D NULL; +STATIC EFI_TCG2_PROTOCOL *mTcg2Protocol =3D NULL; =20 /** This service enables the sending of commands to the TPM2. --=20 2.41.0.windows.3 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107769): https://edk2.groups.io/g/devel/message/107769 Mute This Topic: https://groups.io/mt/100760659/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-