From nobody Mon Feb 9 01:16:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40174+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40174+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557291042; cv=none; d=zoho.com; s=zohoarc; b=JEoK+W+OkVtOfRZwT4yq44aptqyXKUTTe6X+lmIb/Z3hHgl2X/sLUpg7tULWGToAxXSRP79cHKqEdHDcj1GWLLuVTp4qWUgzBoPKYt727FfL8XlnQ2JJF2jzzqSg/iT20mkC2W6YtizFYxVe8lqZjXX+uYXC5M/OSNLVraKQK7Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557291042; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=hY1SXXE+t+anYzpUlit1Oe7ER8740KTfIEZ9HuJK0WU=; b=RBwYpJohcG8tDdmrdegIi68fyY+Cq1QfLOYUNwjOGaMOBGo0WnH1RL+/HD8DwsNMNY+BkIRkQISAMU0ybM/TL1cNb9eY2Yza+Xr8N14BgJCDUFcYSQROIwCev1iiP0Lc8kNXGnLsiMG6eAct882A8yxwE/zeyr+rvYc+4j8Wfak= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40174+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 15572910425811023.9979540228959; Tue, 7 May 2019 21:50:42 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Tue, 07 May 2019 21:50:41 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2019 21:50:41 -0700 X-ExtLoop1: 1 X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by orsmga002.jf.intel.com with ESMTP; 07 May 2019 21:50:39 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew Subject: [edk2-devel] [PATCH V2 4/6] MdeModulePkg/ResetUtilityLib: Replace the reset data difinition Date: Wed, 8 May 2019 12:49:37 +0800 Message-Id: <20190508044939.15744-5-zhichao.gao@intel.com> In-Reply-To: <20190508044939.15744-1-zhichao.gao@intel.com> References: <20190508044939.15744-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557291042; bh=2Idpu80/av+RZsTlxh5VVRoBbItZwiQNWj9gGdeXZpU=; h=Cc:Date:From:Reply-To:Subject:To; b=ZvNLpUiBtTk7FqAapMmvNDGVO0CwiPlsqhUcEHyKn3cfk8axUnSsuC339ZU5m4e/rKj 1f4VCrX30HocfSJbsazkXUsSWRX3cr89fmlYWlJQUpleAtQj7Uf5ZoDaY1LIJEjZMnItn 5k+uA2Dq4/0H83qNfCoV1iJIv8O+gkbBgNI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1772 Replace the definition of 'RESET_UTILITY_GUID_SPECIFIC_RESET_DATA' with 'RESET_DATA_WITH_NULL_STRING'. Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- .../Library/ResetUtilityLib/ResetUtility.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c b/MdeModul= ePkg/Library/ResetUtilityLib/ResetUtility.c index 2b5af4b95a..1bf8a694fb 100644 --- a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c +++ b/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c @@ -13,15 +13,6 @@ #include #include =20 -#pragma pack(1) -typedef struct { - CHAR16 NullTerminator; - GUID ResetSubtype; -} RESET_UTILITY_GUID_SPECIFIC_RESET_DATA; -#pragma pack() - -VERIFY_SIZE_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, 18); - /** This is a shorthand helper function to reset with reset type and a subty= pe so that the caller doesn't have to bother with a function that has half @@ -46,11 +37,11 @@ ResetSystemWithSubtype ( IN CONST GUID *ResetSubtype ) { - RESET_UTILITY_GUID_SPECIFIC_RESET_DATA ResetData; + RESET_DATA_WITH_NULL_STRING ResetData; =20 - ResetData.NullTerminator =3D CHAR_NULL; + ResetData.NullString =3D CHAR_NULL; CopyGuid ( - (GUID *)((UINT8 *)&ResetData + OFFSET_OF (RESET_UTILITY_GUID_SPECIFIC_= RESET_DATA, ResetSubtype)), + (GUID *)((UINT8 *)&ResetData + OFFSET_OF (RESET_DATA_WITH_NULL_STRING,= ResetGuid)), ResetSubtype ); =20 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40174): https://edk2.groups.io/g/devel/message/40174 Mute This Topic: https://groups.io/mt/31540325/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-