]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix ordering of return type and EFIAPI specifier in OemMiscLib
authorRebecca Cran <rebecca@nuviainc.com>
Tue, 23 Feb 2021 04:53:51 +0000 (21:53 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 23 Feb 2021 12:37:51 +0000 (12:37 +0000)
The return type should be on the line before any EFIAPI specifier.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Include/Library/OemMiscLib.h
ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c

index e70019d05f15effcc04fb33cabc69d4503a8b82e..ad0e77685dbe6fc252629e4c54e089572377a2a0 100644 (file)
@@ -71,8 +71,8 @@ typedef enum
 \r
   @return               CPU frequency in Hz\r
 **/\r
-EFIAPI\r
 UINTN\r
+EFIAPI\r
 OemGetCpuFreq (\r
   IN UINT8 ProcessorIndex\r
   );\r
@@ -87,8 +87,8 @@ OemGetCpuFreq (
 \r
   @return  TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetProcessorInformation (\r
   IN UINTN ProcessorIndex,\r
   IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
@@ -106,8 +106,8 @@ OemGetProcessorInformation (
 \r
   @return TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetCacheInformation (\r
   IN UINT8   ProcessorIndex,\r
   IN UINT8   CacheLevel,\r
@@ -120,8 +120,8 @@ OemGetCacheInformation (
 \r
   @return The maximum number of sockets.\r
 **/\r
-EFIAPI\r
 UINT8\r
+EFIAPI\r
 OemGetProcessorMaxSockets (\r
   VOID\r
   );\r
@@ -132,8 +132,8 @@ OemGetProcessorMaxSockets (
 \r
   @retval EFI_SUCCESS The chassis type was fetched successfully.\r
 **/\r
-EFIAPI\r
 EFI_STATUS\r
+EFIAPI\r
 OemGetChassisType (\r
   OUT UINT8 *ChassisType\r
   );\r
@@ -144,8 +144,8 @@ OemGetChassisType (
 \r
   @return TRUE is the processor is present, FALSE otherwise.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemIsSocketPresent (\r
   IN UINTN ProcessorIndex\r
   );\r
@@ -156,8 +156,8 @@ OemIsSocketPresent (
   @param TokenToUpdate The string to update.\r
   @param Offset        The field to get information about.\r
 **/\r
-EFIAPI\r
 VOID\r
+EFIAPI\r
 OemUpdateSmbiosInfo (\r
   IN EFI_HII_HANDLE    HiiHandle,\r
   IN EFI_STRING_ID     TokenToUpdate,\r
index 73cebef2d1b950d09e1dfa513cdc18b7c608357b..6b179941e4141a91224a963d4c5ff4503c2d96ac 100644 (file)
@@ -23,8 +23,8 @@
 \r
   @return               CPU frequency in Hz\r
 **/\r
-EFIAPI\r
 UINTN\r
+EFIAPI\r
 OemGetCpuFreq (\r
   IN UINT8 ProcessorIndex\r
   )\r
@@ -43,8 +43,8 @@ OemGetCpuFreq (
 \r
   @return  TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetProcessorInformation (\r
   IN UINTN ProcessorIndex,\r
   IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
@@ -66,8 +66,8 @@ OemGetProcessorInformation (
 \r
   @return TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetCacheInformation (\r
   IN UINT8   ProcessorIndex,\r
   IN UINT8   CacheLevel,\r
@@ -84,8 +84,8 @@ OemGetCacheInformation (
 \r
   @return The maximum number of sockets.\r
 **/\r
-EFIAPI\r
 UINT8\r
+EFIAPI\r
 OemGetProcessorMaxSockets (\r
   VOID\r
   )\r
@@ -117,8 +117,8 @@ OemGetChassisType (
 \r
   @return TRUE is the processor is present, FALSE otherwise.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemIsSocketPresent (\r
   IN UINTN ProcessorIndex\r
   )\r
@@ -133,8 +133,8 @@ OemIsSocketPresent (
   @param TokenToUpdate The string to update.\r
   @param Offset        The field to get information about.\r
 **/\r
-EFIAPI\r
 VOID\r
+EFIAPI\r
 OemUpdateSmbiosInfo (\r
   IN EFI_HII_HANDLE mHiiHandle,\r
   IN EFI_STRING_ID TokenToUpdate,\r