From 792433088c8bd67725bf1cc4a89408ec7a112719 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 2 Dec 2021 18:00:41 -0800 Subject: [PATCH] EmbeddedPkg: Change OPTIONAL keyword usage style REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760 Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Andrew Fish --- EmbeddedPkg/Include/Library/PrePiLib.h | 2 +- .../PrePiExtractGuidedSectionLib.c | 2 +- EmbeddedPkg/Library/PrePiHobLib/Hob.c | 3 +-- EmbeddedPkg/Library/PrePiLib/FwVol.c | 2 +- EmbeddedPkg/Library/PrePiLib/PrePiLib.c | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/EmbeddedPkg/Include/Library/PrePiLib.h b/EmbeddedPkg/Include/Library/PrePiLib.h index 54f8e1e582..399a8d59a9 100644 --- a/EmbeddedPkg/Include/Library/PrePiLib.h +++ b/EmbeddedPkg/Include/Library/PrePiLib.h @@ -745,7 +745,7 @@ LoadDxeCoreFromFfsFile ( EFI_STATUS EFIAPI LoadDxeCoreFromFv ( - IN UINTN *FvInstance, OPTIONAL + IN UINTN *FvInstance OPTIONAL, IN UINTN StackSize ); diff --git a/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c b/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c index 26deee3fdc..12885f4230 100644 --- a/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c +++ b/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c @@ -167,7 +167,7 @@ EFIAPI ExtractGuidedSectionDecode ( IN CONST VOID *InputSection, OUT VOID **OutputBuffer, - OUT VOID *ScratchBuffer, OPTIONAL + OUT VOID *ScratchBuffer OPTIONAL, OUT UINT32 *AuthenticationStatus ) { diff --git a/EmbeddedPkg/Library/PrePiHobLib/Hob.c b/EmbeddedPkg/Library/PrePiHobLib/Hob.c index b5cc6c5d8f..69d899e3c7 100644 --- a/EmbeddedPkg/Library/PrePiHobLib/Hob.c +++ b/EmbeddedPkg/Library/PrePiHobLib/Hob.c @@ -582,7 +582,7 @@ BuildFv3Hob ( IN UINT64 Length, IN UINT32 AuthenticationStatus, IN BOOLEAN ExtractedFv, - IN CONST EFI_GUID *FvName, OPTIONAL + IN CONST EFI_GUID *FvName OPTIONAL, IN CONST EFI_GUID *FileName OPTIONAL ) { @@ -846,4 +846,3 @@ BuildMemoryTypeInformationHob ( BuildGuidDataHob (&gEfiMemoryTypeInformationGuid, &Info, sizeof (Info)); } - diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c b/EmbeddedPkg/Library/PrePiLib/FwVol.c index 83aa40f794..7b9853bab7 100644 --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c @@ -156,7 +156,7 @@ FileHandleToVolume ( EFI_STATUS FindFileEx ( IN CONST EFI_PEI_FV_HANDLE FvHandle, - IN CONST EFI_GUID *FileName, OPTIONAL + IN CONST EFI_GUID *FileName OPTIONAL, IN EFI_FV_FILETYPE SearchType, IN OUT EFI_PEI_FILE_HANDLE *FileHandle ) diff --git a/EmbeddedPkg/Library/PrePiLib/PrePiLib.c b/EmbeddedPkg/Library/PrePiLib/PrePiLib.c index d20617cf4b..b9344ed865 100644 --- a/EmbeddedPkg/Library/PrePiLib/PrePiLib.c +++ b/EmbeddedPkg/Library/PrePiLib/PrePiLib.c @@ -202,7 +202,7 @@ LoadDxeCoreFromFfsFile ( EFI_STATUS EFIAPI LoadDxeCoreFromFv ( - IN UINTN *FvInstance, OPTIONAL + IN UINTN *FvInstance OPTIONAL, IN UINTN StackSize ) { -- 2.39.2