OvmfPkg/SmmCpuFeaturesLib: upper-case the "static" keyword

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>
This commit is contained in:
Laszlo Ersek 2018-03-01 19:20:37 +01:00
parent b1bfdd6597
commit ea992760ff
1 changed files with 6 additions and 4 deletions

View File

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