From 9ed8c3a8068aebb7e1519ecc8c3be837a4167be5 Mon Sep 17 00:00:00 2001 From: Zhichao Gao Date: Wed, 24 Apr 2019 11:30:45 +0800 Subject: IntelFsp2WrapperPkg/FspWrapperNotifyDxe: 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 Cc: Michael D Kinney Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Zhichao Gao Reviewed-by: Chasel Chiu Reviewed-by: Nate DeSimone Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao --- IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IntelFsp2WrapperPkg') diff --git a/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c b/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c index fe344a5327..0af0ec778c 100644 --- a/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c +++ b/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.c @@ -1,7 +1,7 @@ /** @file This driver will register two callbacks to call fsp's notifies. - Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -39,7 +39,7 @@ extern EFI_GUID gAddPerfRecordProtocolGuid; extern EFI_GUID gFspHobGuid; extern EFI_GUID gFspApiPerformanceGuid; -EFI_EVENT mExitBootServicesEvent = NULL; +static EFI_EVENT mExitBootServicesEvent = NULL; /** Relocate this image under 4G memory. -- cgit v1.2.3