From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: zhichao.gao@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Thu, 25 Apr 2019 18:04:35 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 18:04:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,395,1549958400"; d="scan'208";a="137547628" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by orsmga008.jf.intel.com with ESMTP; 25 Apr 2019 18:04:33 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Laszlo Ersek , Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Michael D Kinney , Liming Gao , Dandan Bi Subject: [PATCH V3 0/8] make mExitBootServicesEvent static Date: Fri, 26 Apr 2019 09:03:56 +0800 Message-Id: <20190426010404.20624-1-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 variable named 'mExitBootServicesEvent'. V3: Update the commit message and some copyright date. Cc: Laszlo Ersek Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Michael D Kinney Cc: Liming Gao Cc: Dandan Bi Zhichao Gao (8): MdePkg/UefiDebugLibConOut: make global variable static MdePkg/UefiDebugLibDebugPortProtocol: make global variable static MdePkg/UefiDebugLibStdErr: make global variable static IntelFrameworkModulePkg: make global variable static MdeModulePkg/FirmwarePerformanceDxe: make global variable static IntelFsp2WrapperPkg/FspWrapperNotifyDxe: make global variable static IntelFrameworkModulePkg: make global variable static MdeModulePkg/StatusCodeHandlerRuntimeDxe: make global variable static .../SmmRuntimeDxeSupport.c | 4 ++-- .../DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c | 4 ++-- IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c | 4 ++-- .../FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c | 4 ++-- .../RuntimeDxe/StatusCodeHandlerRuntimeDxe.c | 4 ++-- MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c | 2 +- .../UefiDebugLibDebugPortProtocol/DebugLibConstructor.c | 2 +- MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) -- 2.21.0.windows.1