From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 9053C22280C23 for ; Wed, 27 Dec 2017 07:51:39 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Dec 2017 07:56:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,466,1508828400"; d="scan'208,217";a="187450370" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 27 Dec 2017 07:56:34 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 27 Dec 2017 07:56:34 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 27 Dec 2017 07:56:33 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by shsmsx102.ccr.corp.intel.com ([169.254.2.189]) with mapi id 14.03.0319.002; Wed, 27 Dec 2017 23:56:31 +0800 From: "Gao, Liming" To: Michael Zimmermann CC: Ard Biesheuvel , "edk2-devel@lists.01.org" , "Kinney, Michael D" Thread-Topic: [edk2] [PATCH 1/3] MdePkg: add RETURNS_TWICE attribute Thread-Index: AQHTevXXqIi81cE1JUq6LD+Vx7lg0qNO9cGAgARwBJCAAE5eAIACKSGw//+vEgCAAdNxMA== Date: Wed, 27 Dec 2017 15:56:31 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E19971E@SHSMSX104.ccr.corp.intel.com> References: <20171222072336.23504-1-sigmaepsilon92@gmail.com> <20171222072336.23504-2-sigmaepsilon92@gmail.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E1961C7@SHSMSX104.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E198BE9@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Re: [PATCH 1/3] MdePkg: add RETURNS_TWICE attribute X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2017 15:51:40 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TWljaGFlbDoNCiAgSSB0cnkgVlMgY29tcGlsZXIuIFdoZW4gSSBhZGQgTk9SRVRVUk4gYXMgdGhl IGZpcnN0IGF0dHJpYnV0ZSBvZiB0aGUgZnVuY3Rpb24gZGVjbGFyYXRpb24uIEl0IGNhbiBwYXNz IGJ1aWxkLiBPbiBWUyBjb21waWxlciwgTk9SRVRVUk4gaXMgcmVxdWlyZWQgdG8gYmUgcGxhY2Vk IGFoZWFkIG9mIEVGSUFQSS4NCg0KVk9JRA0KRUZJQVBJDQpOT1JFVFVSTg0KTG9uZ0p1bXAgKA0K ICBJTiAgICAgIEJBU0VfTElCUkFSWV9KVU1QX0JVRkZFUiAgKkp1bXBCdWZmZXIsDQogIElOICAg ICAgVUlOVE4gICAgICAgICAgICAgICAgICAgICBWYWx1ZQ0K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