OvmfPkg/SmmCpuFeaturesLib: upper-case the "static" keyword
authorLaszlo Ersek <lersek@redhat.com>
Thu, 1 Mar 2018 18:20:37 +0000 (19:20 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 6 Mar 2018 12:30:18 +0000 (13:30 +0100)
In edk2, the "static" keyword is spelled "STATIC". Also let "STATIC" stand
alone on a line in function definitions.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c

index a876a6e347515b45a904722fce4963e08e5f291f..6b9924e494262a5886778c0ceda3d7a48a472876 100644 (file)
@@ -444,7 +444,7 @@ typedef struct {
 /// Table used by GetRegisterIndex() to convert an EFI_SMM_SAVE_STATE_REGISTER\r
 /// value to an index into a table of type CPU_SMM_SAVE_STATE_LOOKUP_ENTRY\r
 ///\r
-static CONST CPU_SMM_SAVE_STATE_REGISTER_RANGE mSmmCpuRegisterRanges[] = {\r
+STATIC CONST CPU_SMM_SAVE_STATE_REGISTER_RANGE mSmmCpuRegisterRanges[] = {\r
   SMM_REGISTER_RANGE (\r
     EFI_SMM_SAVE_STATE_REGISTER_GDTBASE,\r
     EFI_SMM_SAVE_STATE_REGISTER_LDTINFO\r
@@ -464,7 +464,7 @@ static CONST CPU_SMM_SAVE_STATE_REGISTER_RANGE mSmmCpuRegisterRanges[] = {
 /// Lookup table used to retrieve the widths and offsets associated with each\r
 /// supported EFI_SMM_SAVE_STATE_REGISTER value\r
 ///\r
-static CONST CPU_SMM_SAVE_STATE_LOOKUP_ENTRY mSmmCpuWidthOffset[] = {\r
+STATIC CONST CPU_SMM_SAVE_STATE_LOOKUP_ENTRY mSmmCpuWidthOffset[] = {\r
   {\r
     0,                                    // Width32\r
     0,                                    // Width64\r
@@ -833,7 +833,8 @@ static CONST CPU_SMM_SAVE_STATE_LOOKUP_ENTRY mSmmCpuWidthOffset[] = {
   @retval >0  Index into mSmmCpuWidthOffset[] associated with Register\r
 \r
 **/\r
-static UINTN\r
+STATIC\r
+UINTN\r
 GetRegisterIndex (\r
   IN EFI_SMM_SAVE_STATE_REGISTER  Register\r
   )\r
@@ -876,7 +877,8 @@ GetRegisterIndex (
   @retval EFI_INVALID_PARAMTER  This or Buffer is NULL.\r
 \r
 **/\r
-static EFI_STATUS\r
+STATIC\r
+EFI_STATUS\r
 ReadSaveStateRegisterByIndex (\r
   IN UINTN   CpuIndex,\r
   IN UINTN   RegisterIndex,\r