From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 050122117D77C for ; Mon, 29 Oct 2018 22:02:04 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2018 22:02:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,443,1534834800"; d="scan'208";a="85539342" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 29 Oct 2018 22:02:04 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 29 Oct 2018 22:02:03 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 29 Oct 2018 22:02:03 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.102]) with mapi id 14.03.0415.000; Tue, 30 Oct 2018 13:02:01 +0800 From: "Ni, Ruiyu" To: "Dong, Eric" , "edk2-devel@lists.01.org" CC: "Bi, Dandan" Thread-Topic: [Patch] UefiCpuPkg/RegisterCpuFeaturesLib: Fix build failure. Thread-Index: AQHUb/1XjcnNzdqzFkGzTzEctfXbl6U3Ozwg Date: Tue, 30 Oct 2018 05:00:48 +0000 Deferred-Delivery: Tue, 30 Oct 2018 05:02:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BEE51A3@SHSMSX104.ccr.corp.intel.com> References: <20181030030439.29600-1-eric.dong@intel.com> In-Reply-To: <20181030030439.29600-1-eric.dong@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] UefiCpuPkg/RegisterCpuFeaturesLib: Fix build failure. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2018 05:02:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Dong, Eric > Sent: Tuesday, October 30, 2018 11:05 AM > To: edk2-devel@lists.01.org > Cc: Bi, Dandan ; Ni, Ruiyu > Subject: [Patch] UefiCpuPkg/RegisterCpuFeaturesLib: Fix build failure. >=20 > Build UefiCpuPkg with below configuration: > Architecture(s) =3D IA32 > Build target =3D NOOPT > Toolchain =3D VS2015x86 >=20 > Below error info shows up: > DxeRegisterCpuFeaturesLib.lib(CpuFeaturesInitialize.obj) : > error LNK2001: unresolved external symbol __allmul >=20 > Valid mDependTypeStr type only have 5 items, use UINT32 type cast to fix > this error. >=20 > Cc: Dandan Bi > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong > --- > UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git > a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c > b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c > index bc372a338f..8588800e4a 100644 > --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c > +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c > @@ -517,7 +517,7 @@ DumpRegisterTableOnProcessor ( > DebugPrintErrorLevel, > "Processor: %d: Semaphore: Scope Value: %s\r\n", > ProcessorNumber, > - mDependTypeStr[MIN (RegisterTableEntry->Value, InvalidDepType)] > + mDependTypeStr[MIN ((UINT32)RegisterTableEntry->Value, > + InvalidDepType)] > )); > break; >=20 > -- > 2.15.0.windows.1