summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-02 18:00:50 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commitd0e2f8232a26453fc0191629ed44ff2a46ea073e (patch)
tree0a1ee9b5ba30087f1a37933da15195e3a24a5d80 /MdePkg/Library
parente3917e22e769898bb0d08d0112e768437f1ff9fb (diff)
downloadedk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.tar.gz
edk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.tar.bz2
edk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.zip
MdePkg: 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: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c4
-rw-r--r--MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c8
-rw-r--r--MdePkg/Library/BaseLib/BaseLibInternals.h20
-rw-r--r--MdePkg/Library/BaseLib/Ebc/SwitchStack.c4
-rw-r--r--MdePkg/Library/BaseLib/Ia32/CpuId.c7
-rw-r--r--MdePkg/Library/BaseLib/Ia32/CpuIdEx.c6
-rw-r--r--MdePkg/Library/BaseLib/Ia32/DisablePaging32.c4
-rw-r--r--MdePkg/Library/BaseLib/Ia32/EnablePaging32.c5
-rw-r--r--MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c4
-rw-r--r--MdePkg/Library/BaseLib/Ia32/Non-existing.c4
-rw-r--r--MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c4
-rw-r--r--MdePkg/Library/BaseLib/SafeString.c25
-rw-r--r--MdePkg/Library/BaseLib/SwitchStack.c4
-rw-r--r--MdePkg/Library/BaseLib/X64/Non-existing.c12
-rw-r--r--MdePkg/Library/BaseLib/X86DisablePaging32.c4
-rw-r--r--MdePkg/Library/BaseLib/X86DisablePaging64.c4
-rw-r--r--MdePkg/Library/BaseLib/X86EnablePaging32.c4
-rw-r--r--MdePkg/Library/BaseLib/X86EnablePaging64.c4
-rw-r--r--MdePkg/Library/BaseLib/X86UnitTestHost.c56
-rw-r--r--MdePkg/Library/BasePcdLibNull/PcdLib.c7
-rw-r--r--MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c32
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLibInternal.c2
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLibInternal.h2
-rw-r--r--MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c2
-rw-r--r--MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.c2
-rw-r--r--MdePkg/Library/DxeCoreHobLib/HobLib.c2
-rw-r--r--MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c4
-rw-r--r--MdePkg/Library/DxeHobLib/HobLib.c2
-rw-r--r--MdePkg/Library/DxeHstiLib/HstiDxe.c12
-rw-r--r--MdePkg/Library/DxePcdLib/DxePcdLib.c7
-rw-r--r--MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c4
-rw-r--r--MdePkg/Library/PeiHobLib/HobLib.c2
-rw-r--r--MdePkg/Library/PeiPcdLib/PeiPcdLib.c6
-rw-r--r--MdePkg/Library/PeiServicesLib/PeiServicesLib.c18
-rw-r--r--MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c2
-rw-r--r--MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c4
-rw-r--r--MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.c6
-rw-r--r--MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c9
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c6
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h6
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.c7
-rw-r--r--MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c9
-rw-r--r--MdePkg/Library/UefiLib/Acpi.c4
-rw-r--r--MdePkg/Library/UefiLib/Console.c2
-rw-r--r--MdePkg/Library/UefiLib/UefiDriverModel.c32
-rw-r--r--MdePkg/Library/UefiLib/UefiLib.c4
-rw-r--r--MdePkg/Library/UefiLib/UefiLibPrint.c13
-rw-r--r--MdePkg/Library/UefiLib/UefiNotTiano.c8
-rw-r--r--MdePkg/Library/UefiScsiLib/UefiScsiLib.c64
49 files changed, 227 insertions, 236 deletions
diff --git a/MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c b/MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c
index 4d5c23c1d2..b7059ec109 100644
--- a/MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c
+++ b/MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c
@@ -349,7 +349,7 @@ EFIAPI
ExtractGuidedSectionDecode (
IN CONST VOID *InputSection,
OUT VOID **OutputBuffer,
- IN VOID *ScratchBuffer, OPTIONAL
+ IN VOID *ScratchBuffer OPTIONAL,
OUT UINT32 *AuthenticationStatus
)
{
@@ -434,7 +434,7 @@ RETURN_STATUS
EFIAPI
ExtractGuidedSectionGetHandlers (
IN CONST GUID *SectionGuid,
- OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler, OPTIONAL
+ OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler OPTIONAL,
OUT EXTRACT_GUIDED_SECTION_DECODE_HANDLER *DecodeHandler OPTIONAL
)
{
diff --git a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
index 3fe1125b68..034ee041f3 100644
--- a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
+++ b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
@@ -28,8 +28,8 @@ VOID
EFIAPI
InternalSwitchStackAsm (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
);
@@ -62,8 +62,8 @@ VOID
EFIAPI
InternalSwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
IN VA_LIST Marker
)
diff --git a/MdePkg/Library/BaseLib/BaseLibInternals.h b/MdePkg/Library/BaseLib/BaseLibInternals.h
index 6837d67d90..13ac982e92 100644
--- a/MdePkg/Library/BaseLib/BaseLibInternals.h
+++ b/MdePkg/Library/BaseLib/BaseLibInternals.h
@@ -326,8 +326,8 @@ VOID
EFIAPI
InternalSwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
IN VA_LIST Marker
);
@@ -699,8 +699,8 @@ VOID
EFIAPI
InternalX86EnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
);
@@ -738,8 +738,8 @@ VOID
EFIAPI
InternalX86DisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
);
@@ -775,8 +775,8 @@ EFIAPI
InternalX86EnablePaging64 (
IN UINT16 Cs,
IN UINT64 EntryPoint,
- IN UINT64 Context1, OPTIONAL
- IN UINT64 Context2, OPTIONAL
+ IN UINT64 Context1 OPTIONAL,
+ IN UINT64 Context2 OPTIONAL,
IN UINT64 NewStack
);
@@ -811,8 +811,8 @@ EFIAPI
InternalX86DisablePaging64 (
IN UINT16 Cs,
IN UINT32 EntryPoint,
- IN UINT32 Context1, OPTIONAL
- IN UINT32 Context2, OPTIONAL
+ IN UINT32 Context1 OPTIONAL,
+ IN UINT32 Context2 OPTIONAL,
IN UINT32 NewStack
);
diff --git a/MdePkg/Library/BaseLib/Ebc/SwitchStack.c b/MdePkg/Library/BaseLib/Ebc/SwitchStack.c
index 92cbef8d20..c7f3bf6590 100644
--- a/MdePkg/Library/BaseLib/Ebc/SwitchStack.c
+++ b/MdePkg/Library/BaseLib/Ebc/SwitchStack.c
@@ -36,8 +36,8 @@ VOID
EFIAPI
InternalSwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
IN VA_LIST Marker
)
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuId.c b/MdePkg/Library/BaseLib/Ia32/CpuId.c
index bcb0fa78fe..c38b278dce 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuId.c
+++ b/MdePkg/Library/BaseLib/Ia32/CpuId.c
@@ -35,9 +35,9 @@ UINT32
EFIAPI
AsmCpuid (
IN UINT32 Index,
- OUT UINT32 *RegisterEax, OPTIONAL
- OUT UINT32 *RegisterEbx, OPTIONAL
- OUT UINT32 *RegisterEcx, OPTIONAL
+ OUT UINT32 *RegisterEax OPTIONAL,
+ OUT UINT32 *RegisterEbx OPTIONAL,
+ OUT UINT32 *RegisterEcx OPTIONAL,
OUT UINT32 *RegisterEdx OPTIONAL
)
{
@@ -65,4 +65,3 @@ SkipEdx:
mov eax, Index
}
}
-
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c
index b537182a67..7cd42eedbb 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c
+++ b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.c
@@ -43,9 +43,9 @@ EFIAPI
AsmCpuidEx (
IN UINT32 Index,
IN UINT32 SubIndex,
- OUT UINT32 *RegisterEax, OPTIONAL
- OUT UINT32 *RegisterEbx, OPTIONAL
- OUT UINT32 *RegisterEcx, OPTIONAL
+ OUT UINT32 *RegisterEax OPTIONAL,
+ OUT UINT32 *RegisterEbx OPTIONAL,
+ OUT UINT32 *RegisterEcx OPTIONAL,
OUT UINT32 *RegisterEdx OPTIONAL
)
{
diff --git a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.c b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.c
index 12ee874137..9bebd6d3f3 100644
--- a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.c
+++ b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.c
@@ -43,8 +43,8 @@ VOID
EFIAPI
InternalX86DisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.c b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.c
index ce0c71067d..7280c12f60 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.c
+++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.c
@@ -46,8 +46,8 @@ VOID
EFIAPI
InternalX86EnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -72,4 +72,3 @@ InternalX86EnablePaging32 (
jmp $
}
}
-
diff --git a/MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c b/MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c
index 6f4cf79e67..14647f22e5 100644
--- a/MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c
+++ b/MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c
@@ -36,8 +36,8 @@ VOID
EFIAPI
InternalSwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
IN VA_LIST Marker
)
diff --git a/MdePkg/Library/BaseLib/Ia32/Non-existing.c b/MdePkg/Library/BaseLib/Ia32/Non-existing.c
index 889ece4631..3854d904fe 100644
--- a/MdePkg/Library/BaseLib/Ia32/Non-existing.c
+++ b/MdePkg/Library/BaseLib/Ia32/Non-existing.c
@@ -39,8 +39,8 @@ EFIAPI
InternalX86DisablePaging64 (
IN UINT16 CodeSelector,
IN UINT32 EntryPoint,
- IN UINT32 Context1, OPTIONAL
- IN UINT32 Context2, OPTIONAL
+ IN UINT32 Context1 OPTIONAL,
+ IN UINT32 Context2 OPTIONAL,
IN UINT32 NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c b/MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c
index 0bb292141d..ed84cdfa94 100644
--- a/MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c
+++ b/MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c
@@ -36,8 +36,8 @@ VOID
EFIAPI
InternalSwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
IN VA_LIST Marker
)
diff --git a/MdePkg/Library/BaseLib/SafeString.c b/MdePkg/Library/BaseLib/SafeString.c
index 24e818b921..149a9c04ba 100644
--- a/MdePkg/Library/BaseLib/SafeString.c
+++ b/MdePkg/Library/BaseLib/SafeString.c
@@ -620,7 +620,7 @@ RETURN_STATUS
EFIAPI
StrDecimalToUintnS (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT UINTN *Data
)
{
@@ -730,7 +730,7 @@ RETURN_STATUS
EFIAPI
StrDecimalToUint64S (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT UINT64 *Data
)
{
@@ -845,7 +845,7 @@ RETURN_STATUS
EFIAPI
StrHexToUintnS (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT UINTN *Data
)
{
@@ -971,7 +971,7 @@ RETURN_STATUS
EFIAPI
StrHexToUint64S (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT UINT64 *Data
)
{
@@ -1099,7 +1099,7 @@ RETURN_STATUS
EFIAPI
StrToIpv6Address (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT IPv6_ADDRESS *Address,
OUT UINT8 *PrefixLength OPTIONAL
)
@@ -1314,7 +1314,7 @@ RETURN_STATUS
EFIAPI
StrToIpv4Address (
IN CONST CHAR16 *String,
- OUT CHAR16 **EndPointer, OPTIONAL
+ OUT CHAR16 **EndPointer OPTIONAL,
OUT IPv4_ADDRESS *Address,
OUT UINT8 *PrefixLength OPTIONAL
)
@@ -2125,7 +2125,7 @@ RETURN_STATUS
EFIAPI
AsciiStrDecimalToUintnS (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT UINTN *Data
)
{
@@ -2231,7 +2231,7 @@ RETURN_STATUS
EFIAPI
AsciiStrDecimalToUint64S (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT UINT64 *Data
)
{
@@ -2341,7 +2341,7 @@ RETURN_STATUS
EFIAPI
AsciiStrHexToUintnS (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT UINTN *Data
)
{
@@ -2462,7 +2462,7 @@ RETURN_STATUS
EFIAPI
AsciiStrHexToUint64S (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT UINT64 *Data
)
{
@@ -3013,7 +3013,7 @@ RETURN_STATUS
EFIAPI
AsciiStrToIpv6Address (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT IPv6_ADDRESS *Address,
OUT UINT8 *PrefixLength OPTIONAL
)
@@ -3225,7 +3225,7 @@ RETURN_STATUS
EFIAPI
AsciiStrToIpv4Address (
IN CONST CHAR8 *String,
- OUT CHAR8 **EndPointer, OPTIONAL
+ OUT CHAR8 **EndPointer OPTIONAL,
OUT IPv4_ADDRESS *Address,
OUT UINT8 *PrefixLength OPTIONAL
)
@@ -3532,4 +3532,3 @@ AsciiStrHexToBytes (
}
return RETURN_SUCCESS;
}
-
diff --git a/MdePkg/Library/BaseLib/SwitchStack.c b/MdePkg/Library/BaseLib/SwitchStack.c
index cb9f69f1ea..3eb39d4d1d 100644
--- a/MdePkg/Library/BaseLib/SwitchStack.c
+++ b/MdePkg/Library/BaseLib/SwitchStack.c
@@ -41,8 +41,8 @@ VOID
EFIAPI
SwitchStack (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack,
...
)
diff --git a/MdePkg/Library/BaseLib/X64/Non-existing.c b/MdePkg/Library/BaseLib/X64/Non-existing.c
index e00cb7eb5a..8f1eb4a4ce 100644
--- a/MdePkg/Library/BaseLib/X64/Non-existing.c
+++ b/MdePkg/Library/BaseLib/X64/Non-existing.c
@@ -46,8 +46,8 @@ VOID
EFIAPI
InternalX86EnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -91,8 +91,8 @@ VOID
EFIAPI
InternalX86DisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -135,8 +135,8 @@ EFIAPI
InternalX86EnablePaging64 (
IN UINT16 Cs,
IN UINT64 EntryPoint,
- IN UINT64 Context1, OPTIONAL
- IN UINT64 Context2, OPTIONAL
+ IN UINT64 Context1 OPTIONAL,
+ IN UINT64 Context2 OPTIONAL,
IN UINT64 NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/X86DisablePaging32.c b/MdePkg/Library/BaseLib/X86DisablePaging32.c
index b7378c028c..7a6cb84c59 100644
--- a/MdePkg/Library/BaseLib/X86DisablePaging32.c
+++ b/MdePkg/Library/BaseLib/X86DisablePaging32.c
@@ -49,8 +49,8 @@ VOID
EFIAPI
AsmDisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/X86DisablePaging64.c b/MdePkg/Library/BaseLib/X86DisablePaging64.c
index 867a8eba9c..2879185817 100644
--- a/MdePkg/Library/BaseLib/X86DisablePaging64.c
+++ b/MdePkg/Library/BaseLib/X86DisablePaging64.c
@@ -46,8 +46,8 @@ EFIAPI
AsmDisablePaging64 (
IN UINT16 Cs,
IN UINT32 EntryPoint,
- IN UINT32 Context1, OPTIONAL
- IN UINT32 Context2, OPTIONAL
+ IN UINT32 Context1 OPTIONAL,
+ IN UINT32 Context2 OPTIONAL,
IN UINT32 NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/X86EnablePaging32.c b/MdePkg/Library/BaseLib/X86EnablePaging32.c
index 32a0054d2c..2f0c4078f1 100644
--- a/MdePkg/Library/BaseLib/X86EnablePaging32.c
+++ b/MdePkg/Library/BaseLib/X86EnablePaging32.c
@@ -52,8 +52,8 @@ VOID
EFIAPI
AsmEnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/X86EnablePaging64.c b/MdePkg/Library/BaseLib/X86EnablePaging64.c
index 1323e68de5..a09d079109 100644
--- a/MdePkg/Library/BaseLib/X86EnablePaging64.c
+++ b/MdePkg/Library/BaseLib/X86EnablePaging64.c
@@ -48,8 +48,8 @@ EFIAPI
AsmEnablePaging64 (
IN UINT16 Cs,
IN UINT64 EntryPoint,
- IN UINT64 Context1, OPTIONAL
- IN UINT64 Context2, OPTIONAL
+ IN UINT64 Context1 OPTIONAL,
+ IN UINT64 Context2 OPTIONAL,
IN UINT64 NewStack
)
{
diff --git a/MdePkg/Library/BaseLib/X86UnitTestHost.c b/MdePkg/Library/BaseLib/X86UnitTestHost.c
index d0e428457e..3730e2fe26 100644
--- a/MdePkg/Library/BaseLib/X86UnitTestHost.c
+++ b/MdePkg/Library/BaseLib/X86UnitTestHost.c
@@ -60,9 +60,9 @@ UINT32
EFIAPI
UnitTestHostBaseLibAsmCpuid (
IN UINT32 Index,
- OUT UINT32 *Eax, OPTIONAL
- OUT UINT32 *Ebx, OPTIONAL
- OUT UINT32 *Ecx, OPTIONAL
+ OUT UINT32 *Eax OPTIONAL,
+ OUT UINT32 *Ebx OPTIONAL,
+ OUT UINT32 *Ecx OPTIONAL,
OUT UINT32 *Edx OPTIONAL
)
{
@@ -118,9 +118,9 @@ EFIAPI
UnitTestHostBaseLibAsmCpuidEx (
IN UINT32 Index,
IN UINT32 SubIndex,
- OUT UINT32 *Eax, OPTIONAL
- OUT UINT32 *Ebx, OPTIONAL
- OUT UINT32 *Ecx, OPTIONAL
+ OUT UINT32 *Eax OPTIONAL,
+ OUT UINT32 *Ebx OPTIONAL,
+ OUT UINT32 *Ecx OPTIONAL,
OUT UINT32 *Edx OPTIONAL
)
{
@@ -1119,8 +1119,8 @@ VOID
EFIAPI
UnitTestHostBaseLibAsmEnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -1165,8 +1165,8 @@ VOID
EFIAPI
UnitTestHostBaseLibAsmDisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -1210,8 +1210,8 @@ EFIAPI
UnitTestHostBaseLibAsmEnablePaging64 (
IN UINT16 Cs,
IN UINT64 EntryPoint,
- IN UINT64 Context1, OPTIONAL
- IN UINT64 Context2, OPTIONAL
+ IN UINT64 Context1 OPTIONAL,
+ IN UINT64 Context2 OPTIONAL,
IN UINT64 NewStack
)
{
@@ -1256,8 +1256,8 @@ EFIAPI
UnitTestHostBaseLibAsmDisablePaging64 (
IN UINT16 Cs,
IN UINT32 EntryPoint,
- IN UINT32 Context1, OPTIONAL
- IN UINT32 Context2, OPTIONAL
+ IN UINT32 Context1 OPTIONAL,
+ IN UINT32 Context2 OPTIONAL,
IN UINT32 NewStack
)
{
@@ -1512,9 +1512,9 @@ UINT32
EFIAPI
AsmCpuid (
IN UINT32 Index,
- OUT UINT32 *Eax, OPTIONAL
- OUT UINT32 *Ebx, OPTIONAL
- OUT UINT32 *Ecx, OPTIONAL
+ OUT UINT32 *Eax OPTIONAL,
+ OUT UINT32 *Ebx OPTIONAL,
+ OUT UINT32 *Ecx OPTIONAL,
OUT UINT32 *Edx OPTIONAL
)
{
@@ -1558,9 +1558,9 @@ EFIAPI
AsmCpuidEx (
IN UINT32 Index,
IN UINT32 SubIndex,
- OUT UINT32 *Eax, OPTIONAL
- OUT UINT32 *Ebx, OPTIONAL
- OUT UINT32 *Ecx, OPTIONAL
+ OUT UINT32 *Eax OPTIONAL,
+ OUT UINT32 *Ebx OPTIONAL,
+ OUT UINT32 *Ecx OPTIONAL,
OUT UINT32 *Edx OPTIONAL
)
{
@@ -2527,8 +2527,8 @@ VOID
EFIAPI
AsmEnablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -2573,8 +2573,8 @@ VOID
EFIAPI
AsmDisablePaging32 (
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
- IN VOID *Context1, OPTIONAL
- IN VOID *Context2, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
+ IN VOID *Context2 OPTIONAL,
IN VOID *NewStack
)
{
@@ -2618,8 +2618,8 @@ EFIAPI
AsmEnablePaging64 (
IN UINT16 Cs,
IN UINT64 EntryPoint,
- IN UINT64 Context1, OPTIONAL
- IN UINT64 Context2, OPTIONAL
+ IN UINT64 Context1 OPTIONAL,
+ IN UINT64 Context2 OPTIONAL,
IN UINT64 NewStack
)
{
@@ -2661,8 +2661,8 @@ EFIAPI
AsmDisablePaging64 (
IN UINT16 Cs,
IN UINT32 EntryPoint,
- IN UINT32 Context1, OPTIONAL
- IN UINT32 Context2, OPTIONAL
+ IN UINT32 Context1 OPTIONAL,
+ IN UINT32 Context2 OPTIONAL,
IN UINT32 NewStack
)
{
diff --git a/MdePkg/Library/BasePcdLibNull/PcdLib.c b/MdePkg/Library/BasePcdLibNull/PcdLib.c
index 265fae5d73..7cb3714a89 100644
--- a/MdePkg/Library/BasePcdLibNull/PcdLib.c
+++ b/MdePkg/Library/BasePcdLibNull/PcdLib.c
@@ -742,7 +742,7 @@ LibPcdSetExBoolS (
VOID
EFIAPI
LibPcdCallbackOnSet (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -769,7 +769,7 @@ LibPcdCallbackOnSet (
VOID
EFIAPI
LibPcdCancelCallback (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -801,7 +801,7 @@ LibPcdCancelCallback (
UINTN
EFIAPI
LibPcdGetNextToken (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber
)
{
@@ -1110,4 +1110,3 @@ LibPcdGetSku (
return 0;
}
-
diff --git a/MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c b/MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c
index 11763b0c3d..239ea55fe7 100644
--- a/MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c
+++ b/MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c
@@ -38,9 +38,9 @@
RETURN_STATUS
EFIAPI
StartPerformanceMeasurement (
- IN CONST VOID *Handle, OPTIONAL
- IN CONST CHAR8 *Token, OPTIONAL
- IN CONST CHAR8 *Module, OPTIONAL
+ IN CONST VOID *Handle OPTIONAL,
+ IN CONST CHAR8 *Token OPTIONAL,
+ IN CONST CHAR8 *Module OPTIONAL,
IN UINT64 TimeStamp
)
{
@@ -73,9 +73,9 @@ StartPerformanceMeasurement (
RETURN_STATUS
EFIAPI
EndPerformanceMeasurement (
- IN CONST VOID *Handle, OPTIONAL
- IN CONST CHAR8 *Token, OPTIONAL
- IN CONST CHAR8 *Module, OPTIONAL
+ IN CONST VOID *Handle OPTIONAL,
+ IN CONST CHAR8 *Token OPTIONAL,
+ IN CONST CHAR8 *Module OPTIONAL,
IN UINT64 TimeStamp
)
{
@@ -167,9 +167,9 @@ GetPerformanceMeasurement (
RETURN_STATUS
EFIAPI
StartPerformanceMeasurementEx (
- IN CONST VOID *Handle, OPTIONAL
- IN CONST CHAR8 *Token, OPTIONAL
- IN CONST CHAR8 *Module, OPTIONAL
+ IN CONST VOID *Handle OPTIONAL,
+ IN CONST CHAR8 *Token OPTIONAL,
+ IN CONST CHAR8 *Module OPTIONAL,
IN UINT64 TimeStamp,
IN UINT32 Identifier
)
@@ -205,9 +205,9 @@ StartPerformanceMeasurementEx (
RETURN_STATUS
EFIAPI
EndPerformanceMeasurementEx (
- IN CONST VOID *Handle, OPTIONAL
- IN CONST CHAR8 *Token, OPTIONAL
- IN CONST CHAR8 *Module, OPTIONAL
+ IN CONST VOID *Handle OPTIONAL,
+ IN CONST CHAR8 *Token OPTIONAL,
+ IN CONST CHAR8 *Module OPTIONAL,
IN UINT64 TimeStamp,
IN UINT32 Identifier
)
@@ -317,10 +317,10 @@ PerformanceMeasurementEnabled (
RETURN_STATUS
EFIAPI
LogPerformanceMeasurement (
- IN CONST VOID *CallerIdentifier,OPTIONAL
- IN CONST VOID *Guid, OPTIONAL
- IN CONST CHAR8 *String, OPTIONAL
- IN UINT64 Address, OPTIONAL
+ IN CONST VOID *CallerIdentifier OPTIONAL,
+ IN CONST VOID *Guid OPTIONAL,
+ IN CONST CHAR8 *String OPTIONAL,
+ IN UINT64 Address OPTIONAL,
IN UINT32 Identifier
)
{
diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
index 50c6e8559c..f389682816 100644
--- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c
+++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
@@ -532,7 +532,7 @@ BasePrintLibSPrintMarker (
IN UINTN BufferSize,
IN UINTN Flags,
IN CONST CHAR8 *Format,
- IN VA_LIST VaListMarker, OPTIONAL
+ IN VA_LIST VaListMarker OPTIONAL,
IN BASE_LIST BaseListMarker OPTIONAL
)
{
diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.h b/MdePkg/Library/BasePrintLib/PrintLibInternal.h
index c20a582a44..4ef7bc00aa 100644
--- a/MdePkg/Library/BasePrintLib/PrintLibInternal.h
+++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.h
@@ -82,7 +82,7 @@ BasePrintLibSPrintMarker (
IN UINTN BufferSize,
IN UINTN Flags,
IN CONST CHAR8 *Format,
- IN VA_LIST VaListMarker, OPTIONAL
+ IN VA_LIST VaListMarker OPTIONAL,
IN BASE_LIST BaseListMarker OPTIONAL
);
diff --git a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
index e095bb4d85..ee8d306a94 100644
--- a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
+++ b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
@@ -97,7 +97,7 @@ GetPerformanceCounter (
UINT64
EFIAPI
GetPerformanceCounterProperties (
- OUT UINT64 *StartValue, OPTIONAL
+ OUT UINT64 *StartValue OPTIONAL,
OUT UINT64 *EndValue OPTIONAL
)
{
diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.c b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.c
index 5a73933d2a..59e3b08456 100644
--- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.c
+++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.c
@@ -141,7 +141,7 @@ EFIAPI
TianoDecompress (
IN CONST VOID *InputSection,
OUT VOID **OutputBuffer,
- IN VOID *ScratchBuffer, OPTIONAL
+ IN VOID *ScratchBuffer OPTIONAL,
OUT UINT32 *AuthenticationStatus
)
{
diff --git a/MdePkg/Library/DxeCoreHobLib/HobLib.c b/MdePkg/Library/DxeCoreHobLib/HobLib.c
index 9759e86b04..f07131311d 100644
--- a/MdePkg/Library/DxeCoreHobLib/HobLib.c
+++ b/MdePkg/Library/DxeCoreHobLib/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/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
index ef730ec551..995ef1dd7e 100644
--- a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
+++ b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
@@ -342,7 +342,7 @@ EFIAPI
ExtractGuidedSectionDecode (
IN CONST VOID *InputSection,
OUT VOID **OutputBuffer,
- IN VOID *ScratchBuffer, OPTIONAL
+ IN VOID *ScratchBuffer OPTIONAL,
OUT UINT32 *AuthenticationStatus
)
{
@@ -416,7 +416,7 @@ RETURN_STATUS
EFIAPI
ExtractGuidedSectionGetHandlers (
IN CONST GUID *SectionGuid,
- OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler, OPTIONAL
+ OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler OPTIONAL,
OUT EXTRACT_GUIDED_SECTION_DECODE_HANDLER *DecodeHandler OPTIONAL
)
{
diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c
index ffac638d18..2039e5d13f 100644
--- a/MdePkg/Library/DxeHobLib/HobLib.c
+++ b/MdePkg/Library/DxeHobLib/HobLib.c
@@ -488,7 +488,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/MdePkg/Library/DxeHstiLib/HstiDxe.c b/MdePkg/Library/DxeHstiLib/HstiDxe.c
index 262413266c..3f4d8eb79c 100644
--- a/MdePkg/Library/DxeHstiLib/HstiDxe.c
+++ b/MdePkg/Library/DxeHstiLib/HstiDxe.c
@@ -375,7 +375,7 @@ HstiLibGetTable (
EFI_STATUS
InternalHstiRecordFeaturesVerified (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN UINT32 ByteIndex,
IN UINT8 Bit,
IN BOOLEAN Set
@@ -433,7 +433,7 @@ EFI_STATUS
EFIAPI
HstiLibSetFeaturesVerified (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN UINT32 ByteIndex,
IN UINT8 BitMask
)
@@ -466,7 +466,7 @@ EFI_STATUS
EFIAPI
HstiLibClearFeaturesVerified (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN UINT32 ByteIndex,
IN UINT8 BitMask
)
@@ -499,7 +499,7 @@ HstiLibClearFeaturesVerified (
EFI_STATUS
InternalHstiRecordErrorString (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN CHAR16 *ErrorString,
IN BOOLEAN Append
)
@@ -563,7 +563,7 @@ EFI_STATUS
EFIAPI
HstiLibAppendErrorString (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN CHAR16 *ErrorString
)
{
@@ -593,7 +593,7 @@ EFI_STATUS
EFIAPI
HstiLibSetErrorString (
IN UINT32 Role,
- IN CHAR16 *ImplementationID, OPTIONAL
+ IN CHAR16 *ImplementationID OPTIONAL,
IN CHAR16 *ErrorString
)
{
diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.c b/MdePkg/Library/DxePcdLib/DxePcdLib.c
index 2accaeda2c..21ebc88276 100644
--- a/MdePkg/Library/DxePcdLib/DxePcdLib.c
+++ b/MdePkg/Library/DxePcdLib/DxePcdLib.c
@@ -829,7 +829,7 @@ LibPcdSetExBoolS (
VOID
EFIAPI
LibPcdCallbackOnSet (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -862,7 +862,7 @@ LibPcdCallbackOnSet (
VOID
EFIAPI
LibPcdCancelCallback (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -901,7 +901,7 @@ LibPcdCancelCallback (
UINTN
EFIAPI
LibPcdGetNextToken (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber
)
{
@@ -1218,4 +1218,3 @@ LibPcdGetSku (
{
return GetPiPcdInfoProtocolPointer()->GetSku ();
}
-
diff --git a/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c b/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
index 9feb350561..5d12016bc7 100644
--- a/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
+++ b/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
@@ -384,7 +384,7 @@ EFIAPI
ExtractGuidedSectionDecode (
IN CONST VOID *InputSection,
OUT VOID **OutputBuffer,
- IN VOID *ScratchBuffer, OPTIONAL
+ IN VOID *ScratchBuffer OPTIONAL,
OUT UINT32 *AuthenticationStatus
)
{
@@ -469,7 +469,7 @@ RETURN_STATUS
EFIAPI
ExtractGuidedSectionGetHandlers (
IN CONST GUID *SectionGuid,
- OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler, OPTIONAL
+ OUT EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *GetInfoHandler OPTIONAL,
OUT EXTRACT_GUIDED_SECTION_DECODE_HANDLER *DecodeHandler OPTIONAL
)
{
diff --git a/MdePkg/Library/PeiHobLib/HobLib.c b/MdePkg/Library/PeiHobLib/HobLib.c
index ed40b6806a..2b110a8aa6 100644
--- a/MdePkg/Library/PeiHobLib/HobLib.c
+++ b/MdePkg/Library/PeiHobLib/HobLib.c
@@ -631,7 +631,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/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
index d979b28cc8..84edb9befd 100644
--- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
+++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
@@ -829,7 +829,7 @@ LibPcdSetExBoolS (
VOID
EFIAPI
LibPcdCallbackOnSet (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -863,7 +863,7 @@ LibPcdCallbackOnSet (
VOID
EFIAPI
LibPcdCancelCallback (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_CALLBACK NotificationFunction
)
@@ -903,7 +903,7 @@ LibPcdCancelCallback (
UINTN
EFIAPI
LibPcdGetNextToken (
- IN CONST GUID *Guid, OPTIONAL
+ IN CONST GUID *Guid OPTIONAL,
IN UINTN TokenNumber
)
{
diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
index e8eaed71c8..dce404f69d 100644
--- a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
+++ b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
@@ -89,7 +89,7 @@ EFIAPI
PeiServicesLocatePpi (
IN CONST EFI_GUID *Guid,
IN UINTN Instance,
- IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, OPTIONAL
+ IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor OPTIONAL,
IN OUT VOID **Ppi
)
{
@@ -622,11 +622,11 @@ VOID
EFIAPI
InternalPeiServicesInstallFvInfoPpi (
IN BOOLEAN InstallFvInfoPpi,
- IN CONST EFI_GUID *FvFormat, OPTIONAL
+ IN CONST EFI_GUID *FvFormat OPTIONAL,
IN CONST VOID *FvInfo,
IN UINT32 FvInfoSize,
- IN CONST EFI_GUID *ParentFvName, OPTIONAL
- IN CONST EFI_GUID *ParentFileName, OPTIONAL
+ IN CONST EFI_GUID *ParentFvName OPTIONAL,
+ IN CONST EFI_GUID *ParentFileName OPTIONAL,
IN UINT32 AuthenticationStatus
)
{
@@ -728,10 +728,10 @@ InternalPeiServicesInstallFvInfoPpi (
VOID
EFIAPI
PeiServicesInstallFvInfoPpi (
- IN CONST EFI_GUID *FvFormat, OPTIONAL
+ IN CONST EFI_GUID *FvFormat OPTIONAL,
IN CONST VOID *FvInfo,
IN UINT32 FvInfoSize,
- IN CONST EFI_GUID *ParentFvName, OPTIONAL
+ IN CONST EFI_GUID *ParentFvName OPTIONAL,
IN CONST EFI_GUID *ParentFileName OPTIONAL
)
{
@@ -772,11 +772,11 @@ PeiServicesInstallFvInfoPpi (
VOID
EFIAPI
PeiServicesInstallFvInfo2Ppi (
- IN CONST EFI_GUID *FvFormat, OPTIONAL
+ IN CONST EFI_GUID *FvFormat OPTIONAL,
IN CONST VOID *FvInfo,
IN UINT32 FvInfoSize,
- IN CONST EFI_GUID *ParentFvName, OPTIONAL
- IN CONST EFI_GUID *ParentFileName, OPTIONAL
+ IN CONST EFI_GUID *ParentFvName OPTIONAL,
+ IN CONST EFI_GUID *ParentFileName OPTIONAL,
IN UINT32 AuthenticationStatus
)
{
diff --git a/MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c b/MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c
index 50911fc55e..9f61d4d32a 100644
--- a/MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c
+++ b/MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c
@@ -305,7 +305,7 @@ GetPerformanceCounter (
UINT64
EFIAPI
GetPerformanceCounterProperties (
- OUT UINT64 *StartValue, OPTIONAL
+ OUT UINT64 *StartValue OPTIONAL,
OUT UINT64 *EndValue OPTIONAL
)
{
diff --git a/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c b/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
index 4bf800c139..87559a4d6d 100644
--- a/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
+++ b/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
@@ -35,7 +35,7 @@ SmiHandlerProfileRegisterHandler (
IN EFI_GUID *HandlerGuid,
IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
IN PHYSICAL_ADDRESS CallerAddress,
- IN VOID *Context, OPTIONAL
+ IN VOID *Context OPTIONAL,
IN UINTN ContextSize OPTIONAL
)
{
@@ -64,7 +64,7 @@ EFIAPI
SmiHandlerProfileUnregisterHandler (
IN EFI_GUID *HandlerGuid,
IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
- IN VOID *Context, OPTIONAL
+ IN VOID *Context OPTIONAL,
IN UINTN ContextSize OPTIONAL
)
{
diff --git a/MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.c b/MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.c
index 8b1e780b76..838fe42fe8 100644
--- a/MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.c
+++ b/MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.c
@@ -606,7 +606,7 @@ PeriodicSmiYield (
VOID
EFIAPI
PeriodicSmiDispatchFunctionSwitchStack (
- IN VOID *Context1, OPTIONAL
+ IN VOID *Context1 OPTIONAL,
IN VOID *Context2 OPTIONAL
)
{
@@ -898,9 +898,9 @@ PeriodicSmiDispatchFunction (
EFI_STATUS
EFIAPI
PeriodicSmiEnable (
- IN OUT EFI_HANDLE *DispatchHandle, OPTIONAL
+ IN OUT EFI_HANDLE *DispatchHandle OPTIONAL,
IN PERIODIC_SMI_LIBRARY_HANDLER DispatchFunction,
- IN CONST VOID *Context, OPTIONAL
+ IN CONST VOID *Context OPTIONAL,
IN UINT64 TickPeriod,
IN UINTN Cpu,
IN UINTN StackSize
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
index 7d5fb18d25..b9aa462fdf 100644
--- a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
+++ b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
@@ -449,7 +449,7 @@ UefiDevicePathLibDuplicateDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePath (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *SecondDevicePath OPTIONAL
)
{
@@ -528,7 +528,7 @@ UefiDevicePathLibAppendDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePathNode (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathNode OPTIONAL
)
{
@@ -591,7 +591,7 @@ UefiDevicePathLibAppendDevicePathNode (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePathInstance (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance OPTIONAL
)
{
@@ -830,7 +830,7 @@ UefiDevicePathLibIsDevicePathMultiInstance (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
FileDevicePath (
- IN EFI_HANDLE Device, OPTIONAL
+ IN EFI_HANDLE Device OPTIONAL,
IN CONST CHAR16 *FileName
)
{
@@ -861,4 +861,3 @@ FileDevicePath (
return DevicePath;
}
-
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
index aac7686169..af4b219387 100644
--- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
@@ -90,7 +90,7 @@ DuplicateDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePath (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *SecondDevicePath OPTIONAL
)
{
@@ -128,7 +128,7 @@ AppendDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathNode (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathNode OPTIONAL
)
{
@@ -161,7 +161,7 @@ AppendDevicePathNode (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathInstance (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h
index 8e9b8f8f4a..04b2375000 100644
--- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h
+++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h
@@ -214,7 +214,7 @@ UefiDevicePathLibDuplicateDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePath (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *SecondDevicePath OPTIONAL
);
@@ -249,7 +249,7 @@ UefiDevicePathLibAppendDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePathNode (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathNode OPTIONAL
);
@@ -279,7 +279,7 @@ UefiDevicePathLibAppendDevicePathNode (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
UefiDevicePathLibAppendDevicePathInstance (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance OPTIONAL
);
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.c
index 106ff245cc..e1e629442a 100644
--- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.c
+++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.c
@@ -135,7 +135,7 @@ DuplicateDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePath (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *SecondDevicePath OPTIONAL
)
{
@@ -177,7 +177,7 @@ AppendDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathNode (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathNode OPTIONAL
)
{
@@ -214,7 +214,7 @@ AppendDevicePathNode (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathInstance (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance OPTIONAL
)
{
@@ -475,4 +475,3 @@ ConvertTextToDevicePath (
return UefiDevicePathLibConvertTextToDevicePath (TextDevicePath);
}
-
diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
index 5a8f293f98..8fdd9490b5 100644
--- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
@@ -456,7 +456,7 @@ DuplicateDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePath (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *FirstDevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *SecondDevicePath OPTIONAL
)
{
@@ -494,7 +494,7 @@ AppendDevicePath (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathNode (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathNode OPTIONAL
)
{
@@ -527,7 +527,7 @@ AppendDevicePathNode (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
AppendDevicePathInstance (
- IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance OPTIONAL
)
{
@@ -684,7 +684,7 @@ DevicePathFromHandle (
EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
FileDevicePath (
- IN EFI_HANDLE Device, OPTIONAL
+ IN EFI_HANDLE Device OPTIONAL,
IN CONST CHAR16 *FileName
)
{
@@ -862,4 +862,3 @@ ConvertTextToDevicePath (
return NULL;
}
}
-
diff --git a/MdePkg/Library/UefiLib/Acpi.c b/MdePkg/Library/UefiLib/Acpi.c
index d8f147bfe3..d4f7fc8aa8 100644
--- a/MdePkg/Library/UefiLib/Acpi.c
+++ b/MdePkg/Library/UefiLib/Acpi.c
@@ -33,7 +33,7 @@ ScanTableInSDT (
IN EFI_ACPI_DESCRIPTION_HEADER *Sdt,
IN UINTN TablePointerSize,
IN UINT32 Signature,
- IN EFI_ACPI_COMMON_HEADER *PreviousTable, OPTIONAL
+ IN EFI_ACPI_COMMON_HEADER *PreviousTable OPTIONAL,
OUT BOOLEAN *PreviousTableLocated OPTIONAL
)
{
@@ -172,7 +172,7 @@ EFI_ACPI_COMMON_HEADER *
LocateAcpiTableInAcpiConfigurationTable (
IN EFI_GUID *AcpiGuid,
IN UINT32 Signature,
- IN EFI_ACPI_COMMON_HEADER *PreviousTable, OPTIONAL
+ IN EFI_ACPI_COMMON_HEADER *PreviousTable OPTIONAL,
OUT BOOLEAN *PreviousTableLocated OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/Console.c b/MdePkg/Library/UefiLib/Console.c
index 17ec31c966..e5b04849d8 100644
--- a/MdePkg/Library/UefiLib/Console.c
+++ b/MdePkg/Library/UefiLib/Console.c
@@ -390,7 +390,7 @@ VOID
EFIAPI
CreatePopUp (
IN UINTN Attribute,
- OUT EFI_INPUT_KEY *Key, OPTIONAL
+ OUT EFI_INPUT_KEY *Key OPTIONAL,
...
)
{
diff --git a/MdePkg/Library/UefiLib/UefiDriverModel.c b/MdePkg/Library/UefiLib/UefiDriverModel.c
index 2f8bf8d2b8..deaf9a74a9 100644
--- a/MdePkg/Library/UefiLib/UefiDriverModel.c
+++ b/MdePkg/Library/UefiLib/UefiDriverModel.c
@@ -137,8 +137,8 @@ EfiLibInstallAllDriverProtocols (
IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL
)
{
@@ -256,8 +256,8 @@ EFI_STATUS
EFIAPI
EfiLibUninstallAllDriverProtocols (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL
)
{
@@ -379,7 +379,7 @@ EfiLibInstallDriverBindingComponentName2 (
IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL
)
{
@@ -455,7 +455,7 @@ EFI_STATUS
EFIAPI
EfiLibUninstallDriverBindingComponentName2 (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL
)
{
@@ -543,11 +543,11 @@ EfiLibInstallAllDriverProtocols2 (
IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2, OPTIONAL
- IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2 OPTIONAL,
+ IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2 OPTIONAL
)
{
@@ -1297,11 +1297,11 @@ EFI_STATUS
EFIAPI
EfiLibUninstallAllDriverProtocols2 (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2, OPTIONAL
- IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2 OPTIONAL,
+ IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2 OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/UefiLib.c
index b6a33a0a48..c2d143e821 100644
--- a/MdePkg/Library/UefiLib/UefiLib.c
+++ b/MdePkg/Library/UefiLib/UefiLib.c
@@ -136,7 +136,7 @@ EfiCreateProtocolNotifyEvent(
IN EFI_GUID *ProtocolGuid,
IN EFI_TPL NotifyTpl,
IN EFI_EVENT_NOTIFY NotifyFunction,
- IN VOID *NotifyContext, OPTIONAL
+ IN VOID *NotifyContext OPTIONAL,
OUT VOID **Registration
)
{
@@ -207,7 +207,7 @@ EfiNamedEventListen (
IN CONST EFI_GUID *Name,
IN EFI_TPL NotifyTpl,
IN EFI_EVENT_NOTIFY NotifyFunction,
- IN CONST VOID *NotifyContext, OPTIONAL
+ IN CONST VOID *NotifyContext OPTIONAL,
OUT VOID *Registration OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c
index ae3a94eb0c..41db7bdfc3 100644
--- a/MdePkg/Library/UefiLib/UefiLibPrint.c
+++ b/MdePkg/Library/UefiLib/UefiLibPrint.c
@@ -600,8 +600,8 @@ EFIAPI
PrintXY (
IN UINTN PointX,
IN UINTN PointY,
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL,
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL,
IN CONST CHAR16 *Format,
...
)
@@ -679,8 +679,8 @@ EFIAPI
AsciiPrintXY (
IN UINTN PointX,
IN UINTN PointY,
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL,
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL,
IN CONST CHAR8 *Format,
...
)
@@ -735,7 +735,7 @@ AsciiPrintXY (
CHAR16*
EFIAPI
CatVSPrint (
- IN CHAR16 *String, OPTIONAL
+ IN CHAR16 *String OPTIONAL,
IN CONST CHAR16 *FormatString,
IN VA_LIST Marker
)
@@ -800,7 +800,7 @@ CatVSPrint (
CHAR16 *
EFIAPI
CatSPrint (
- IN CHAR16 *String, OPTIONAL
+ IN CHAR16 *String OPTIONAL,
IN CONST CHAR16 *FormatString,
...
)
@@ -813,4 +813,3 @@ CatSPrint (
VA_END (Marker);
return NewString;
}
-
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c
index c614b1ea1a..32cc26cfc9 100644
--- a/MdePkg/Library/UefiLib/UefiNotTiano.c
+++ b/MdePkg/Library/UefiLib/UefiNotTiano.c
@@ -69,8 +69,8 @@ EFI_STATUS
EFIAPI
EfiCreateEventLegacyBootEx (
IN EFI_TPL NotifyTpl,
- IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL
- IN VOID *NotifyContext, OPTIONAL
+ IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL,
+ IN VOID *NotifyContext OPTIONAL,
OUT EFI_EVENT *LegacyBootEvent
)
{
@@ -164,8 +164,8 @@ EFI_STATUS
EFIAPI
EfiCreateEventReadyToBootEx (
IN EFI_TPL NotifyTpl,
- IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL
- IN VOID *NotifyContext, OPTIONAL
+ IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL,
+ IN VOID *NotifyContext OPTIONAL,
OUT EFI_EVENT *ReadyToBootEvent
)
{
diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
index 512bec500c..28c7dd6074 100644
--- a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
+++ b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
@@ -133,7 +133,7 @@ EFIAPI
ScsiTestUnitReadyCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus
@@ -269,11 +269,11 @@ EFIAPI
ScsiInquiryCommandEx (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *InquiryDataBuffer, OPTIONAL
+ IN OUT VOID *InquiryDataBuffer OPTIONAL,
IN OUT UINT32 *InquiryDataLength,
IN BOOLEAN EnableVitalProductData,
IN UINT8 PageCode
@@ -416,11 +416,11 @@ EFIAPI
ScsiInquiryCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *InquiryDataBuffer, OPTIONAL
+ IN OUT VOID *InquiryDataBuffer OPTIONAL,
IN OUT UINT32 *InquiryDataLength,
IN BOOLEAN EnableVitalProductData
)
@@ -533,13 +533,13 @@ EFIAPI
ScsiModeSense10Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
- IN UINT8 DBDField, OPTIONAL
+ IN UINT8 DBDField OPTIONAL,
IN UINT8 PageControl,
IN UINT8 PageCode
)
@@ -629,7 +629,7 @@ EFIAPI
ScsiRequestSenseCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus
@@ -721,11 +721,11 @@ EFIAPI
ScsiReadCapacityCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN BOOLEAN Pmi
)
@@ -825,11 +825,11 @@ EFIAPI
ScsiReadCapacity16Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN BOOLEAN Pmi
)
@@ -932,11 +932,11 @@ EFIAPI
ScsiRead10Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT32 StartLba,
IN UINT32 SectorSize
@@ -1032,11 +1032,11 @@ EFIAPI
ScsiWrite10Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT32 StartLba,
IN UINT32 SectorSize
@@ -1132,11 +1132,11 @@ EFIAPI
ScsiRead16Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT64 StartLba,
IN UINT32 SectorSize
@@ -1232,11 +1232,11 @@ EFIAPI
ScsiWrite16Command (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT64 StartLba,
IN UINT32 SectorSize
@@ -1336,7 +1336,7 @@ EFIAPI
ScsiSecurityProtocolInCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
@@ -1344,7 +1344,7 @@ ScsiSecurityProtocolInCommand (
IN UINT16 SecurityProtocolSpecific,
IN BOOLEAN Inc512,
IN UINTN DataLength,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
OUT UINTN *TransferLength
)
{
@@ -1449,7 +1449,7 @@ EFIAPI
ScsiSecurityProtocolOutCommand (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
@@ -1632,11 +1632,11 @@ EFIAPI
ScsiRead10CommandEx (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT32 StartLba,
IN UINT32 SectorSize,
@@ -1816,11 +1816,11 @@ EFIAPI
ScsiWrite10CommandEx (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT32 StartLba,
IN UINT32 SectorSize,
@@ -2000,11 +2000,11 @@ EFIAPI
ScsiRead16CommandEx (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT64 StartLba,
IN UINT32 SectorSize,
@@ -2184,11 +2184,11 @@ EFIAPI
ScsiWrite16CommandEx (
IN EFI_SCSI_IO_PROTOCOL *ScsiIo,
IN UINT64 Timeout,
- IN OUT VOID *SenseData, OPTIONAL
+ IN OUT VOID *SenseData OPTIONAL,
IN OUT UINT8 *SenseDataLength,
OUT UINT8 *HostAdapterStatus,
OUT UINT8 *TargetStatus,
- IN OUT VOID *DataBuffer, OPTIONAL
+ IN OUT VOID *DataBuffer OPTIONAL,
IN OUT UINT32 *DataLength,
IN UINT64 StartLba,
IN UINT32 SectorSize,