From nobody Sat Nov 2 12:19:18 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1490583736741475.87140496357904; Sun, 26 Mar 2017 20:02:16 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A7390203BEBE8; Sun, 26 Mar 2017 20:02:13 -0700 (PDT) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 20B6920D2C3B9 for ; Sun, 26 Mar 2017 20:02:12 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2017 20:02:10 -0700 Received: from jfan12-desk.ccr.corp.intel.com ([10.239.158.57]) by fmsmga001.fm.intel.com with ESMTP; 26 Mar 2017 20:02:09 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490583732; x=1522119732; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=HRVY+DMfFmNSc3lr+PTS2oXnxuMQ1d92sOZbuapu/60=; b=B66+d0MJ+Pn+6xcTiE2pazW+VW2YkqwdPQPgkC6/xqxo7zR+Dr+EXgVH SyHBBoyJocBPnqxDeMRVPqidziddPQ==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,229,1486454400"; d="scan'208";a="1127411325" From: Jeff Fan To: edk2-devel@lists.01.org Date: Mon, 27 Mar 2017 11:02:01 +0800 Message-Id: <20170327030204.13572-3-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 In-Reply-To: <20170327030204.13572-1-jeff.fan@intel.com> References: <20170327030204.13572-1-jeff.fan@intel.com> Subject: [edk2] [PATCH 2/5] UefiCpuPkg/RegisterCpuFeaturesLib: Remove static type X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Kinney , Feng Tian MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Using one specific name for global variable to save MP services protocol pointer. Cc: Feng Tian Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- .../Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c | 10 +++++-= ---- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeatur= esLib.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesL= ib.c index c49f556..74c658a 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c @@ -19,7 +19,7 @@ #include "RegisterCpuFeatures.h" =20 CPU_FEATURES_DATA mCpuFeaturesData =3D {0}; -static EFI_MP_SERVICES_PROTOCOL *mMpServices =3D NULL; +EFI_MP_SERVICES_PROTOCOL *mCpuFeaturesMpServices =3D NULL; =20 /** Worker function to get CPU_FEATURES_DATA pointer. @@ -46,20 +46,20 @@ GetMpProtocol ( { EFI_STATUS Status; =20 - if (mMpServices =3D=3D NULL) { + if (mCpuFeaturesMpServices =3D=3D NULL) { // // Get MP Services Protocol // Status =3D gBS->LocateProtocol ( &gEfiMpServiceProtocolGuid, NULL, - (VOID **)&mMpServices + (VOID **)&mCpuFeaturesMpServices ); ASSERT_EFI_ERROR (Status); } =20 - ASSERT (mMpServices !=3D NULL); - return mMpServices; + ASSERT (mCpuFeaturesMpServices !=3D NULL); + return mCpuFeaturesMpServices; } =20 /** --=20 2.9.3.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel