]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Label CreateEvent NotifyFunction and NotifyContext optional
authorRebecca Cran <rebecca@bsdio.com>
Fri, 23 Dec 2022 23:48:12 +0000 (07:48 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Feb 2023 07:41:01 +0000 (07:41 +0000)
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 <rebecca@bsdio.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Include/Uefi/UefiSpec.h

index 3abebbb8d90484c2273a31bed1b47d58e537fd1d..7dfe35b4990b065fc3e8ac9ce503744736e08e4b 100644 (file)
@@ -465,8 +465,8 @@ EFI_STATUS
 (EFIAPI *EFI_CREATE_EVENT)(\r
   IN  UINT32                       Type,\r
   IN  EFI_TPL                      NotifyTpl,\r
-  IN  EFI_EVENT_NOTIFY             NotifyFunction,\r
-  IN  VOID                         *NotifyContext,\r
+  IN  EFI_EVENT_NOTIFY             NotifyFunction OPTIONAL,\r
+  IN  VOID                         *NotifyContext OPTIONAL,\r
   OUT EFI_EVENT                    *Event\r
   );\r
 \r