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 mga01.intel.com (mga01.intel.com []) by groups.io with SMTP; Thu, 25 Apr 2019 18:04:44 -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:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,395,1549958400"; d="scan'208";a="137547673" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by orsmga008.jf.intel.com with ESMTP; 25 Apr 2019 18:04:41 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Laszlo Ersek , Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Liming Gao , Dandan Bi Subject: [PATCH V3 5/8] MdeModulePkg/FirmwarePerformanceDxe: make global variable static Date: Fri, 26 Apr 2019 09:04:01 +0800 Message-Id: <20190426010404.20624-6-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190426010404.20624-1-zhichao.gao@intel.com> References: <20190426010404.20624-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' storage-class specifier to the global variables that only used in a single file to minimize the name collisions. This is only for the variable named 'mExitBootServicesEvent'. Cc: Laszlo Ersek Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Zhichao Gao --- .../FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c b/MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c index 9713048f1f..61a7704b37 100644 --- a/MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c +++ b/MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c @@ -5,7 +5,7 @@ for Firmware Basic Boot Performance Record and other boot performance records, and install FPDT to ACPI table. - Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -40,7 +40,7 @@ EFI_RSC_HANDLER_PROTOCOL *mRscHandlerProtocol = NULL; BOOLEAN mLockBoxReady = FALSE; EFI_EVENT mReadyToBootEvent; EFI_EVENT mLegacyBootEvent; -EFI_EVENT mExitBootServicesEvent; +static EFI_EVENT mExitBootServicesEvent; UINTN mFirmwarePerformanceTableTemplateKey = 0; BOOLEAN mDxeCoreReportStatusCodeEnable = FALSE; -- 2.21.0.windows.1