From nobody Sat May 4 12:54:25 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.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 1532012314540393.8740683975948; Thu, 19 Jul 2018 07:58:34 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 15C072098EA67; Thu, 19 Jul 2018 07:58:34 -0700 (PDT) Received: from SMTP03.CITRIX.COM (smtp03.citrix.com [162.221.156.55]) (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 697BF2098C8DA for ; Thu, 19 Jul 2018 07:58:32 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=162.221.156.55; helo=smtp03.citrix.com; envelope-from=prvs=731019788=anthony.perard@citrix.com; receiver=edk2-devel@lists.01.org X-IronPort-AV: E=Sophos;i="5.51,375,1526342400"; d="scan'208";a="60635498" From: Anthony PERARD To: Date: Thu, 19 Jul 2018 15:58:25 +0100 Message-ID: <20180719145825.13339-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Subject: [edk2] [PATCH] UefiCpuPkg/MpInitLib: Fix build of Microcode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony PERARD , Laszlo Ersek , Eric Dong 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" On Debian Jessie, this fail to build with: /build/UefiCpuPkg/Library/MpInitLib/Microcode.c: In function 'MicrocodeDete= ct': /build/UefiCpuPkg/Library/MpInitLib/Microcode.c:248:37: error: 'ProcessorFl= ags' may be used uninitialized in this function [-Werror=3Dmaybe-uninitiali= zed] CpuMpData->ProcessorFlags =3D ProcessorFlags; ^ Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Anthony PERARD --- UefiCpuPkg/Library/MpInitLib/Microcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MpInitLib/Microcode.c b/UefiCpuPkg/Library/= MpInitLib/Microcode.c index efda143e67..60cf8bf409 100644 --- a/UefiCpuPkg/Library/MpInitLib/Microcode.c +++ b/UefiCpuPkg/Library/MpInitLib/Microcode.c @@ -60,7 +60,7 @@ MicrocodeDetect ( BOOLEAN CorrectMicrocode; VOID *MicrocodeData; MSR_IA32_PLATFORM_ID_REGISTER PlatformIdMsr; - UINT32 ProcessorFlags; + UINT32 ProcessorFlags =3D 0; UINT32 ThreadId; =20 if (CpuMpData->MicrocodePatchRegionSize =3D=3D 0) { --=20 Anthony PERARD _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel