From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9069281F08 for ; Tue, 24 Jan 2017 18:13:00 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP; 24 Jan 2017 18:13:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,281,1477983600"; d="scan'208";a="56886787" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 24 Jan 2017 18:13:00 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 24 Jan 2017 18:12:59 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 24 Jan 2017 18:12:59 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Wed, 25 Jan 2017 10:12:57 +0800 From: "Zhang, Chao B" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" Thread-Topic: [edk2] [PATCH 2/3] MdePkg: VariableDxe: Use UEFI_VARIABLE_DATA Thread-Index: AQHSdheX8UarwtlPE0+HQ0uRh10bd6FGxo6AgAGsh/A= Date: Wed, 25 Jan 2017 02:12:56 +0000 Message-ID: References: <20170124075732.27484-1-chao.b.zhang@intel.com> <20170124075732.27484-2-chao.b.zhang@intel.com> <0C09AFA07DD0434D9E2A0C6AEB0483103B8199D3@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103B8199D3@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 2/3] MdePkg: VariableDxe: Use UEFI_VARIABLE_DATA X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 02:13:00 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Star:=20 I agree. I will clean up other TrEEProtocol reference later on. -----Original Message----- From: Zeng, Star=20 Sent: Tuesday, January 24, 2017 4:33 PM To: Zhang, Chao B ; edk2-devel@lists.01.org Cc: Yao, Jiewen ; Zeng, Star Subject: RE: [edk2] [PATCH 2/3] MdePkg: VariableDxe: Use UEFI_VARIABLE_DATA Could we remove " #include " in Measurement.c? Thanks, Star -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Zhan= g, Chao B Sent: Tuesday, January 24, 2017 3:58 PM To: edk2-devel@lists.01.org Cc: Yao, Jiewen ; Zhang, Chao B ; Zeng, Star Subject: [edk2] [PATCH 2/3] MdePkg: VariableDxe: Use UEFI_VARIABLE_DATA Use UEFI_VARIABLE_DATA data structure according to TCG PC-Client PFP Spec 0= 0.21. http://www.trustedcomputinggroup.org/wp-content/uploads/PC-ClientSpecific_P= latform_Profile_for_TPM_2p0_Systems_v21.pdf Cc: Star Zeng Cc: Yao Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang --- MdeModulePkg/Universal/Variable/RuntimeDxe/Measurement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Measurement.c b/Mde= ModulePkg/Universal/Variable/RuntimeDxe/Measurement.c index 309521f..b9febac 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Measurement.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Measurement.c @@ -96,7 +96,7 @@ MeasureVariable ( { EFI_STATUS Status; UINTN VarNameLength; - EFI_VARIABLE_DATA_TREE *VarLog; + UEFI_VARIABLE_DATA *VarLog; UINT32 VarLogSize; =20 ASSERT ((VarSize =3D=3D 0 && VarData =3D=3D NULL) || (VarSize !=3D 0 && = VarData !=3D NULL)); @@ -105,7 +105,7 @@ MeasureVariable ( VarLogSize =3D (UINT32)(sizeof (*VarLog) + VarNameLength * sizeof (*VarN= ame) + VarSize - sizeof (VarLog->UnicodeName) - sizeof (VarLog->V= ariableData)); =20 - VarLog =3D (EFI_VARIABLE_DATA_TREE *) AllocateZeroPool (VarLogSize); + VarLog =3D (UEFI_VARIABLE_DATA *) AllocateZeroPool (VarLogSize); if (VarLog =3D=3D NULL) { return EFI_OUT_OF_RESOURCES; } -- 1.9.5.msysgit.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel