summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-02 18:00:41 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit792433088c8bd67725bf1cc4a89408ec7a112719 (patch)
tree445a51f05d8b0b15d6c9770e253cf20bc7de695e
parentfe2d81892fec402067d30c34e779d0645a1e902b (diff)
downloadedk2-792433088c8bd67725bf1cc4a89408ec7a112719.tar.gz
edk2-792433088c8bd67725bf1cc4a89408ec7a112719.tar.bz2
edk2-792433088c8bd67725bf1cc4a89408ec7a112719.zip
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 <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Andrew Fish <afish@apple.com>
-rw-r--r--EmbeddedPkg/Include/Library/PrePiLib.h2
-rw-r--r--EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c2
-rw-r--r--EmbeddedPkg/Library/PrePiHobLib/Hob.c3
-rw-r--r--EmbeddedPkg/Library/PrePiLib/FwVol.c2
-rw-r--r--EmbeddedPkg/Library/PrePiLib/PrePiLib.c2
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
)
{