From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx.groups.io with SMTP id smtpd.web11.86282.1671839299376833689 for ; Fri, 23 Dec 2022 15:48:19 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bsdio.com header.s=fm3 header.b=lTOyGY8H; spf=pass (domain: bsdio.com, ip: 66.111.4.28, mailfrom: rebecca@bsdio.com) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A80235C00B2; Fri, 23 Dec 2022 18:48:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 23 Dec 2022 18:48:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdio.com; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1671839298; x=1671925698; bh=kbOsTJCiwYrMP0IxEPGH4BZj0 eudpjLjPJjBtRBMVEc=; b=lTOyGY8H3yaZj+e39NJLc0ISUmWbMrciJX7bV55FG 5kBfePqMvJXOzTQepQ7rLgZGHwIoApXqTjogc5neCp9ggH6jrftAMuHKrD0J1gW1 Zmey5wPmKs2Uu6xO2UBxKldZOs3nIjCyquu7iopGtdeUFS7eHCmL8pTnaFnx25Lt vaSBrBBrvsHyewxSEtGrsAZvurhY2l16tm5WPjGfrwhhWN+gzJz6aQNOiCmtF0y2 z6wh0JAz0/rVhgQYUDvpu/bT2Z8KjYZYjv25HrYiYxKQlYB3GiSXYX9nfmmRcWAQ wCnMwmm893fljH+z0fo3hyI+yf2bgb/zFBy1sowefWxQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1671839298; x=1671925698; bh=kbOsTJCiwYrMP0IxEPGH4BZj0eudpjLjPJj BtRBMVEc=; b=rzoT7yzw08da4eHi3QkE/eII6X9q/lLPi35XwHhrrzk5m3T/7bB cMD5uRl3cnw5PPRz3WAGXWucPld23Mw0QIRvOeqURf/ezOQvMdj+IkXbRvhdKjYw rF6WqT3rwGCN5rCXBSrZqboU/WVMUArQ8xhdW0GqIhfL4WaLE1PC/lbM7oErCwLr 6JdhxB8D9O0ytCGpH9tzCIFh5SMDjcFK0EigpZX6WGecmCYHC/SkIWQhcPRqjQPz ag1TpnErZMZ+nspmwuxBbwFk+zd4xtOa9J790XP+f2hAl7UnEQE+7P3G5bTnlQiD +Ig6DKUEFO0j/02BdL6AX9S29SHxDu6TEJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrheefgddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeftvggsvggttggr ucevrhgrnhcuoehrvggsvggttggrsegsshguihhordgtohhmqeenucggtffrrghtthgvrh hnpeeuvdektdelkeeukefgjeejteetffdtudeiffefheevfefgveeulefghfellefgvden ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrvggsvg gttggrsegsshguihhordgtohhm X-ME-Proxy: Feedback-ID: i5b994698:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Dec 2022 18:48:16 -0500 (EST) From: "Rebecca Cran" To: devel@edk2.groups.io, Michael D Kinney , Liming Gao , Zhiguang Liu Cc: Rebecca Cran Subject: [PATCH 1/1] MdePkg: Label CreateEvent NotifyFunction and NotifyContext optional Date: Fri, 23 Dec 2022 16:48:12 -0700 Message-Id: <20221223234812.3414-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit According to the UEFI 2.10 Specification, the EFI_BOOT_SERVICES_TABLE CreateEvent function has the following signature: typedef EFI_STATUS (EFIAPI *EFI_CREATE_EVENT) ( IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL IN VOID *NotifyContext, OPTIONAL OUT EFI_EVENT *Event ); Fix the prototype in UefiSpec.h to match, by labeling the NotifyFunction and NotifyContext parameters as OPTIONAL. Signed-off-by: Rebecca Cran --- MdePkg/Include/Uefi/UefiSpec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h index 3abebbb8d904..7dfe35b4990b 100644 --- a/MdePkg/Include/Uefi/UefiSpec.h +++ b/MdePkg/Include/Uefi/UefiSpec.h @@ -465,8 +465,8 @@ EFI_STATUS (EFIAPI *EFI_CREATE_EVENT)( IN UINT32 Type, IN EFI_TPL NotifyTpl, - IN EFI_EVENT_NOTIFY NotifyFunction, - IN VOID *NotifyContext, + IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, + IN VOID *NotifyContext OPTIONAL, OUT EFI_EVENT *Event ); -- 2.25.1