REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1740

V1:
The DebugLib instances of DebugPortProtocol, ConOut and StdErr
use a global variable "mExitBootServicesEvent" which is in
conflict with the same variable in StatusCodeHandlerRuntimeDxe.inf.
That would cause a build error through GCC5. So change the
name to the "mDebugLibExitBootServicesEvent".

V2:
Abandon v1.
Add a 'static' descriptor to the global variables that only
used in a single file to minimize the name collisions.
This is only for the varable named 'mExitBootServicesEvent'.

Cc: Laszlo Ersek <ler...@redhat.com>
Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Hao Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Cc: Star Zeng <star.z...@intel.com>
Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <liming....@intel.com>
Cc: Dandan Bi <dandan...@intel.com>


Zhichao Gao (8):
  MdePkg/UefiDebugLibConOut: Decrease the name collisions
  MdePkg/UefiDebugLibDebugPortProtocol: Decrease the name collisions
  MdePkg/UefiDebugLibStdErr: Decrease the name collisions
  IntelFrameworkModulePkg: Decrease the name collisions
  MdeModulePkg/FirmwarePerformanceDxe: Decrease the name collisions
  IntelFsp2WrapperPkg/FspWrapperNotifyDxe: Decrease the name collisions
  IntelFrameworkModulePkg: Decrease the name collisions
  MdeModulePkg/StatusCodeHandlerRuntimeDxe: Decrease the name collisions

 .../SmmRuntimeDxeSupport.c                                    | 2 +-
 .../DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c | 2 +-
 IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c | 2 +-
 .../FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c  | 2 +-
 .../RuntimeDxe/StatusCodeHandlerRuntimeDxe.c                  | 2 +-
 MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c       | 4 ++--
 .../UefiDebugLibDebugPortProtocol/DebugLibConstructor.c       | 4 ++--
 MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c       | 4 ++--
 8 files changed, 11 insertions(+), 11 deletions(-)

-- 
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#39445): https://edk2.groups.io/g/devel/message/39445
Mute This Topic: https://groups.io/mt/31318885/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to