diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-02 18:01:01 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | e35dd3282157b2c9418999828c6dad695f148142 (patch) | |
tree | acc91bc61a91b7b7be9128c7037f342fde8987ec | |
parent | 4ec586b9f67a86036dfc8f23f4f8a0341513e94c (diff) | |
download | edk2-e35dd3282157b2c9418999828c6dad695f148142.tar.gz edk2-e35dd3282157b2c9418999828c6dad695f148142.tar.bz2 edk2-e35dd3282157b2c9418999828c6dad695f148142.zip |
UefiPayloadPkg: 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: Ray Ni <ray.ni@intel.com>
-rw-r--r-- | UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c | 2 | ||||
-rw-r--r-- | UefiPayloadPkg/Include/Library/SpiFlashLib.h | 3 | ||||
-rw-r--r-- | UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c | 3 | ||||
-rw-r--r-- | UefiPayloadPkg/Library/DxeHobLib/HobLib.c | 2 | ||||
-rw-r--r-- | UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c | 3 | ||||
-rw-r--r-- | UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c | 3 | ||||
-rw-r--r-- | UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c | 4 |
7 files changed, 8 insertions, 12 deletions
diff --git a/UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c b/UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c index 43787d279a..887a10f75f 100644 --- a/UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c +++ b/UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c @@ -133,7 +133,7 @@ EFI_STATUS EFIAPI
GraphicsOutputBlt (
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, OPTIONAL
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer OPTIONAL,
IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation,
IN UINTN SourceX,
IN UINTN SourceY,
diff --git a/UefiPayloadPkg/Include/Library/SpiFlashLib.h b/UefiPayloadPkg/Include/Library/SpiFlashLib.h index 59840afb70..0f172dc15b 100644 --- a/UefiPayloadPkg/Include/Library/SpiFlashLib.h +++ b/UefiPayloadPkg/Include/Library/SpiFlashLib.h @@ -207,9 +207,8 @@ EFI_STATUS EFIAPI
SpiGetRegionAddress (
IN FLASH_REGION_TYPE FlashRegionType,
- OUT UINT32 *BaseAddress, OPTIONAL
+ OUT UINT32 *BaseAddress OPTIONAL,
OUT UINT32 *RegionSize OPTIONAL
);
#endif
-
diff --git a/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c b/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c index b86382d709..1b486647bd 100644 --- a/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c +++ b/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c @@ -209,7 +209,7 @@ GetPerformanceCounter ( UINT64
EFIAPI
GetPerformanceCounterProperties (
- OUT UINT64 *StartValue, OPTIONAL
+ OUT UINT64 *StartValue OPTIONAL,
OUT UINT64 *EndValue OPTIONAL
)
{
@@ -267,4 +267,3 @@ GetTimeInNanoSecond ( return NanoSeconds;
}
-
diff --git a/UefiPayloadPkg/Library/DxeHobLib/HobLib.c b/UefiPayloadPkg/Library/DxeHobLib/HobLib.c index 5d5ede0c17..6787f65e18 100644 --- a/UefiPayloadPkg/Library/DxeHobLib/HobLib.c +++ b/UefiPayloadPkg/Library/DxeHobLib/HobLib.c @@ -454,7 +454,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
)
{
diff --git a/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c b/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c index 61cd11ba03..6853f2e55f 100644 --- a/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c +++ b/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c @@ -511,7 +511,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
)
{
@@ -679,4 +679,3 @@ BuildMemoryAllocationHob ( //
ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));
}
-
diff --git a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c index 71dfcef740..3f2db14bf3 100644 --- a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c +++ b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c @@ -803,7 +803,7 @@ EFI_STATUS EFIAPI
SpiGetRegionAddress (
IN FLASH_REGION_TYPE FlashRegionType,
- OUT UINT32 *BaseAddress, OPTIONAL
+ OUT UINT32 *BaseAddress OPTIONAL,
OUT UINT32 *RegionSize OPTIONAL
)
{
@@ -854,4 +854,3 @@ SpiGetRegionAddress ( return EFI_SUCCESS;
}
-
diff --git a/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c b/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c index 141ce86b46..5831b93dcb 100644 --- a/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c +++ b/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c @@ -38,8 +38,8 @@ EFIAPI PeiLoadFileLoadPayload (
IN CONST EFI_PEI_LOAD_FILE_PPI *This,
IN EFI_PEI_FILE_HANDLE FileHandle,
- OUT EFI_PHYSICAL_ADDRESS *ImageAddressArg, OPTIONAL
- OUT UINT64 *ImageSizeArg, OPTIONAL
+ OUT EFI_PHYSICAL_ADDRESS *ImageAddressArg OPTIONAL,
+ OUT UINT64 *ImageSizeArg OPTIONAL,
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
OUT UINT32 *AuthenticationState
)
|