From nobody Tue Nov 26 07:35:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+55782+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55782+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1583987425; cv=none; d=zohomail.com; s=zohoarc; b=Jl1aGauzCHPLFDIAxd3tpbsazupBP/FTnn5GMYgm3t57nwf9OSREA6AOUCfpQEZu9cWIltpSSzQU18QmM31wjqhJphLWtIieUVtGqFNa+2YVKTKUdWJUqhau/RMHJ/CPrJiwuEUjnJ4ssA7QBS+Xyn2Se0qdfy+RMRx4SIkg3YY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583987425; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=URyF23ZAiNDOYrf8AbRxToEMo8cuTNxPvhOqCbRSE10=; b=X2As2LYrvfLi+BJm+xCQM5Vnma9e1CuW7TIJcbJkzPeVZdlmEpsutNEa7TsqIvtV+JoMvv6vXfba9MP91nhMmzhfzpUxphx3Ia6dSzqPhZPjUdLPBF0TSZ8watAxQ6V/6BXEVacyidqEtMvqDBhimotiiM1ZLFQd3TLpxaYBiQk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55782+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1583987425462513.3031571512429; Wed, 11 Mar 2020 21:30:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id S7sLYY1788612xrGTgO2gNOQ; Wed, 11 Mar 2020 21:30:24 -0700 X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.3876.1583987423428836981 for ; Wed, 11 Mar 2020 21:30:23 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2020 21:30:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,543,1574150400"; d="scan'208";a="354040133" X-Received: from shwde7172.ccr.corp.intel.com ([10.239.158.67]) by fmsmga001.fm.intel.com with ESMTP; 11 Mar 2020 21:30:21 -0700 From: "Liming Gao" To: devel@edk2.groups.io Cc: Laszlo Ersek , Ard Biesheuvel Subject: [edk2-devel] [patch v2] OvmfPkg: Fix build failure with VS2015 tool chain Date: Thu, 12 Mar 2020 12:30:08 +0800 Message-Id: <20200312043008.1389-1-liming.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,liming.gao@intel.com X-Gm-Message-State: l29kAHKiBnXMdyiI9fNxvOXnx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1583987424; bh=KM+mRcSsbQtsswtcFxJfmV3GAdWda4E5m7YCSNb97fc=; h=Cc:Date:From:Reply-To:Subject:To; b=TOdO5sa00A6xa866RBi9aZ7GU/ViZs5ypkaIub2k/NNzIRFxtZa20ryU6IOVo8Hj0ca M2hQ3YjBlbg8G4xzYgGClyODkmmlVgIiY+LRv6ruOOZIW3F8B1L7QHoBBV7IqOWbXuFTL /wmsZq4cn6Dlk3aOCw+RLbH3iGu3P5lfsmk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" warning C4244: '=3D': conversion from 'UINTN' to 'UINT32', possible loss of= data With this fix, OvmfIa32, OvmfX64 and OvmfIa32X64 can pass build. Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Liming Gao Reviewed-by: Laszlo Ersek --- OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c b/Ov= mfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c index 1868c9fcaf..1f02da2503 100644 --- a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c +++ b/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c @@ -384,7 +384,7 @@ QemuLoadKernelImage ( // // Drop the terminating NUL, convert to UTF-16. // - KernelLoadedImage->LoadOptionsSize =3D (CommandLineSize - 1) * 2; + KernelLoadedImage->LoadOptionsSize =3D (UINT32) ((CommandLineSize - 1)= * 2); } =20 QemuFwCfgSelectItem (QemuFwCfgItemInitrdSize); --=20 2.13.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55782): https://edk2.groups.io/g/devel/message/55782 Mute This Topic: https://groups.io/mt/71896179/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-