]> git.proxmox.com Git - mirror_edk2.git/commit
Vlv2TbltDevicePkg/AcpiPlatform: Amend the declaration of mGlobalNvsArea
authorGary Lin <glin@suse.com>
Fri, 29 Jul 2016 03:25:28 +0000 (11:25 +0800)
committerdavid wei <david.wei@intel.com>
Wed, 3 Aug 2016 03:02:17 +0000 (11:02 +0800)
commite7643ce70cabf09d89ba069b5460aab5901fa89d
tree5d99a9b0194cc9529682a05c7943acf79b3a1348
parentfe6e53b5ba692463aa5c3daac1788e8375ceef80
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>
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.h
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatformHooks.c