]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: make global variable static
authorZhichao Gao <zhichao.gao@intel.com>
Wed, 24 Apr 2019 03:32:38 +0000 (11:32 +0800)
committerLiming Gao <liming.gao@intel.com>
Sun, 28 Apr 2019 02:54:28 +0000 (10:54 +0800)
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 <lersek@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c

index 4a6137a50950e2a0dccf179f27e34679f69bfa19..7dce1d2ee739de6a3e56c70674eb4a1599a083b5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Library constructor & destructor, event handlers, and other internal worker functions.\r
 \r
-  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -9,7 +9,7 @@
 #include "ReportStatusCodeLibInternal.h"\r
 \r
 EFI_EVENT                     mVirtualAddressChangeEvent;\r
-EFI_EVENT                     mExitBootServicesEvent;\r
+static EFI_EVENT              mExitBootServicesEvent;\r
 EFI_STATUS_CODE_DATA          *mStatusCodeData;\r
 BOOLEAN                       mInSmm;\r
 EFI_SMM_BASE_PROTOCOL         *mSmmBase;\r