From nobody Mon May 6 00:37:09 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=outlook.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1525530295709967.159790138222; Sat, 5 May 2018 07:24:55 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id AD7CF203BA4E3; Sat, 5 May 2018 07:24:53 -0700 (PDT) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-oln040092064094.outbound.protection.outlook.com [40.92.64.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4C2BE2279CEFA for ; Sat, 5 May 2018 07:24:52 -0700 (PDT) Received: from DB5EUR01FT004.eop-EUR01.prod.protection.outlook.com (10.152.4.52) by DB5EUR01HT227.eop-EUR01.prod.protection.outlook.com (10.152.5.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16; Sat, 5 May 2018 14:24:50 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.4.53) by DB5EUR01FT004.mail.protection.outlook.com (10.152.4.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.735.16 via Frontend Transport; Sat, 5 May 2018 14:24:50 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e%17]) with mapi id 15.20.0715.024; Sat, 5 May 2018 14:24:50 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.64.94; helo=eur01-db5-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=24kDTL3QFUcrkFOWqpyoVhw17qtXrCOl8GoOqvfxTjg=; b=m6w0LTNjs1Ys0wrxXNJ61akpMJM5Bvt52IMGYBEpiDp1QfbBrLCJl+5yWVhQr2+TBm7bm+nnmKGHP8f3XY1r4JPcWFzzjJuSABFtv7eOFoO75POwi8cAObkjufVsBuZqZZNimB/nCEQwNquTFppKsj9UfI+xh5BYAdMm1CiOlZhL2D8R8RKkC86yaCw+UNDcYn7qtk+qBX71QLmtDZ+5SNmdpjg3hc2YcLnSIQxKWC8zRH/ER9AzbRHP0YtnXSvhoKJRQcm0k6RITkPg8Ye/ZOqQIexysE3R3iKRBS/32tHn2j1wvJb1Ys/Ioc23EH4IvKrDyhMbw6DaJr6hMj8hnw== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] MdePkg/PeiServicesLib: Decorate 'PpiDescriptor' as OPTIONAL for LocatePpi(). Thread-Index: AQHT5HzTGgq/VCKEV0esoP8bFdMVew== Date: Sat, 5 May 2018 14:24:50 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0202CA0010.eurprd02.prod.outlook.com (2603:10a6:208:1::23) To VI1PR0801MB1790.eurprd08.prod.outlook.com (2603:10a6:800:5b::15) x-incomingtopheadermarker: OriginalChecksum:275AC010F2027EBFBECED832ACA166B75834D2A16CD0FCA7C554A3A6E2C279E7; UpperCasedChecksum:5B8A1CB81C126D0237B29E7B2800FC3E7C3BBF434B01BBA9EBD1BE5A7FF59A60; SizeAsReceived:7719; Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [R1Ubnh2AgU+lrGuRZhYx7Kgmh653+SPA] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT227; 7:kgRd1zH8qnxDcnPiTeeMk2pvbbVtUV3UbF33jhvO6o32T0sOMVsxsRlLgEbOHVNYfkI8xk8rtji9WPTp0ALci3oHKFWFdYQkcmGm7JMSYj7a+BtpjilWLj5wg44CxZwRJD848P41lFLAXKa3z1nMqmSOiIAcw/K0viA9vO16E1h7H9dzZf6fzi2FBqo8IJRYBRdRmOTA5GzICVxM410ngewOj3YC3X7E/FuX9WZcLxzawTtvJT+v1tJJ/L2qdK4J x-incomingheadercount: 50 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:DB5EUR01HT227; x-ms-traffictypediagnostic: DB5EUR01HT227: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT227; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT227; x-forefront-prvs: 0663390E1B x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT227; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:; x-microsoft-antispam-message-info: Zjd2xEJ7/mNULi8AbKSLjwTGepFaeEIzktNVji3opSVV464/xIR654dmjb/YVC6iuDFO2MfiE+HrhWmM2xvkREnQGi+KvN/HF047mo+OJN2qEbQiPLFiSTizJcvl+q4RztoG/j3Iy61jQWwWr9CXBRGeo74HVLtxdBZ5QF6K9uGZUWOsVO2DqfftyZtGMLhJ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0a93b5ed-11e9-43bc-1b0c-08d5b293f5ba X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 0a93b5ed-11e9-43bc-1b0c-08d5b293f5ba X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2018 14:24:50.1750 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT227 Subject: [edk2] [PATCH] MdePkg/PeiServicesLib: Decorate 'PpiDescriptor' as OPTIONAL for LocatePpi(). X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "michael.d.kinney@intel.com" , "liming.gao@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The UEFI PI specification defines PpiDescriptor to be OPTIONAL for the LocatePpi PEI Service. This patch reflects this in the function declaration and definition of the corresponding PeiServices library function. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Liming Gao --- MdePkg/Library/PeiServicesLib/PeiServicesLib.c | 4 ++-- MdePkg/Include/Library/PeiServicesLib.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c b/MdePkg/Librar= y/PeiServicesLib/PeiServicesLib.c index d0838ed709f6..881b9cd52e1a 100644 --- a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c +++ b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c @@ -1,7 +1,7 @@ /** @file Implementation for PEI Services Library. =20 - Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -95,7 +95,7 @@ EFIAPI PeiServicesLocatePpi ( IN CONST EFI_GUID *Guid, IN UINTN Instance, - IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, + IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, OPTIONAL IN OUT VOID **Ppi ) { diff --git a/MdePkg/Include/Library/PeiServicesLib.h b/MdePkg/Include/Libra= ry/PeiServicesLib.h index 0be72237f290..7cea34000c2f 100644 --- a/MdePkg/Include/Library/PeiServicesLib.h +++ b/MdePkg/Include/Library/PeiServicesLib.h @@ -1,7 +1,7 @@ /** @file Provides library functions for all PEI Services. =20 -Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -73,7 +73,7 @@ EFIAPI PeiServicesLocatePpi ( IN CONST EFI_GUID *Guid, IN UINTN Instance, - IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, + IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, OPTIONAL IN OUT VOID **Ppi ); =20 --=20 2.17.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel