From nobody Sun Apr 28 21:09:51 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 1532015551514507.5734422061098; Thu, 19 Jul 2018 08:52:31 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 026132098EA70; Thu, 19 Jul 2018 08:52:31 -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 DF5B021B02845 for ; Thu, 19 Jul 2018 08:52:28 -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="60643111" From: Anthony PERARD To: Date: Thu, 19 Jul 2018 16:52:20 +0100 Message-ID: <20180719155220.7344-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E2BDD0B@SHSMSX104.ccr.corp.intel.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E2BDD0B@SHSMSX104.ccr.corp.intel.com> MIME-Version: 1.0 Subject: [edk2] [PATCH v2] 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 , "Gao, Liming" 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 --- Notes: v2: Fix coding style. UefiCpuPkg/Library/MpInitLib/Microcode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/UefiCpuPkg/Library/MpInitLib/Microcode.c b/UefiCpuPkg/Library/= MpInitLib/Microcode.c index efda143e67..cea1d34c0a 100644 --- a/UefiCpuPkg/Library/MpInitLib/Microcode.c +++ b/UefiCpuPkg/Library/MpInitLib/Microcode.c @@ -87,6 +87,7 @@ MicrocodeDetect ( } =20 ExtendedTableLength =3D 0; + ProcessorFlags =3D 0; // // Here data of CPUID leafs have not been collected into context buffer,= so // GetProcessorCpuid() cannot be used here to retrieve CPUID data. --=20 Anthony PERARD _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel