summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhichao Gao <zhichao.gao@intel.com>2019-04-24 11:28:43 +0800
committerLiming Gao <liming.gao@intel.com>2019-04-28 10:54:27 +0800
commitea305ce3f8b5bd682e2df78c7349d0ebc1c36b07 (patch)
tree9b5536868769b16ead0244382594c21febaf97af
parentffe48f4b6c65cf573ec9aa69c14f294b8940aa1c (diff)
downloadedk2-ea305ce3f8b5bd682e2df78c7349d0ebc1c36b07.tar.gz
edk2-ea305ce3f8b5bd682e2df78c7349d0ebc1c36b07.tar.bz2
edk2-ea305ce3f8b5bd682e2df78c7349d0ebc1c36b07.zip
IntelFrameworkModulePkg: make global variable static
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>
-rw-r--r--IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c b/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c
index 0f9185144d..5a82b99d09 100644
--- a/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c
+++ b/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c
@@ -2,14 +2,14 @@
Status Code Handler Driver which produces datahub handler and hook it
onto the DXE status code router.
- Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DatahubStatusCodeHandlerDxe.h"
-EFI_EVENT mExitBootServicesEvent = NULL;
+static EFI_EVENT mExitBootServicesEvent = NULL;
EFI_RSC_HANDLER_PROTOCOL *mRscHandlerProtocol = NULL;
/**