From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: zhichao.gao@intel.com) Received: from mga17.intel.com (mga17.intel.com []) by groups.io with SMTP; Tue, 23 Apr 2019 21:59:11 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2019 21:59:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,388,1549958400"; d="scan'208";a="138312393" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by orsmga006.jf.intel.com with ESMTP; 23 Apr 2019 21:59:10 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Laszlo Ersek , Liming Gao , Dandan Bi Subject: [PATCH V2 7/8] IntelFrameworkModulePkg: Decrease the name collisions Date: Wed, 24 Apr 2019 12:58:26 +0800 Message-Id: <20190424045827.19348-8-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190424045827.19348-1-zhichao.gao@intel.com> References: <20190424045827.19348-1-zhichao.gao@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1740 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 Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Zhichao Gao --- .../SmmRuntimeDxeSupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c b/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c index 4a6137a509..e5db127b8a 100644 --- a/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c +++ b/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c @@ -9,7 +9,7 @@ #include "ReportStatusCodeLibInternal.h" EFI_EVENT mVirtualAddressChangeEvent; -EFI_EVENT mExitBootServicesEvent; +static EFI_EVENT mExitBootServicesEvent; EFI_STATUS_CODE_DATA *mStatusCodeData; BOOLEAN mInSmm; EFI_SMM_BASE_PROTOCOL *mSmmBase; -- 2.21.0.windows.1