]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/StatusCodeHandlerRuntimeDxe: make global variable static
authorZhichao Gao <zhichao.gao@intel.com>
Wed, 24 Apr 2019 03:34:28 +0000 (11:34 +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: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@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: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.c

index 0d327d40e35148edc51eca417b863c6d519d92a0..79cc48fa55a44630fc6808d7859c73c38d075289 100644 (file)
@@ -2,7 +2,7 @@
   Status Code Handler Driver which produces general handlers and hook them\r
   onto the DXE status code router.\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
@@ -10,7 +10,7 @@
 #include "StatusCodeHandlerRuntimeDxe.h"\r
 \r
 EFI_EVENT                 mVirtualAddressChangeEvent = NULL;\r
-EFI_EVENT                 mExitBootServicesEvent     = NULL;\r
+static EFI_EVENT          mExitBootServicesEvent     = NULL;\r
 EFI_RSC_HANDLER_PROTOCOL  *mRscHandlerProtocol       = NULL;\r
 \r
 /**\r