From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 2667281EFB for ; Tue, 24 Jan 2017 00:32:44 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP; 24 Jan 2017 00:32:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,277,1477983600"; d="scan'208";a="56812334" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga005.fm.intel.com with ESMTP; 24 Jan 2017 00:32:43 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 24 Jan 2017 00:32:43 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Tue, 24 Jan 2017 16:32:41 +0800 From: "Zeng, Star" To: "Zhang, Chao B" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Zeng, Star" Thread-Topic: [edk2] [PATCH 2/3] MdePkg: VariableDxe: Use UEFI_VARIABLE_DATA Thread-Index: AQHSdheWrgtuQc6jZUOC6rlLxs9gPqFHTGrg Date: Tue, 24 Jan 2017 08:32:41 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B8199D3@shsmsx102.ccr.corp.intel.com> References: <20170124075732.27484-1-chao.b.zhang@intel.com> <20170124075732.27484-2-chao.b.zhang@intel.com> In-Reply-To: <20170124075732.27484-2-chao.b.zhang@intel.com> Accept-Language: zh-CN, 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: Tue, 24 Jan 2017 08:32:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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