diff options
author | Gary Lin <glin@suse.com> | 2016-07-29 11:25:28 +0800 |
---|---|---|
committer | david wei <david.wei@intel.com> | 2016-08-03 11:02:17 +0800 |
commit | e7643ce70cabf09d89ba069b5460aab5901fa89d (patch) | |
tree | 5d99a9b0194cc9529682a05c7943acf79b3a1348 /Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | |
parent | fe6e53b5ba692463aa5c3daac1788e8375ceef80 (diff) | |
download | edk2-e7643ce70cabf09d89ba069b5460aab5901fa89d.tar.gz edk2-e7643ce70cabf09d89ba069b5460aab5901fa89d.tar.bz2 edk2-e7643ce70cabf09d89ba069b5460aab5901fa89d.zip |
Vlv2TbltDevicePkg/AcpiPlatform: Amend the declaration of mGlobalNvsArea
mGlobalNvsArea wasn't declared as extern in AcpiPlatform.h and the header
was included in AcpiPlatform.c and AcpiPlatformHooks.c. Although it's
declared as extern in AcpiPlatformHooks.c, gcc still created an instance
of mGlobalNvsArea in AcpiPlatformHooks.c since the header was expanded
first and then the linker complained "multiple definition". This commit
rearrange the delaration of mGlobalNvsArea to satisfy gcc.
Cc: David Wei <david.wei@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c')
-rw-r--r-- | Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c index f533d742a4..4a913eb723 100644 --- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c +++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c @@ -67,6 +67,7 @@ CHAR16 gACPIOSFRRefDataBlockVariableName[] = ACPI_OSFR_REF_DATA_BLOCK_VARIABL CHAR16 gACPIOSFRMfgStringVariableName[] = ACPI_OSFR_MFG_STRING_VARIABLE_NAME;
EFI_CPU_IO_PROTOCOL *mCpuIo;
+EFI_GLOBAL_NVS_AREA_PROTOCOL mGlobalNvsArea;
#ifndef __GNUC__
#pragma optimize("", off)
#endif
|