From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.2524.1634090718702095930 for ; Tue, 12 Oct 2021 19:05:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=MwPZhbR7; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0920a4c5b0=abner.chang@hpe.com) Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19CMcbAM015758; Wed, 13 Oct 2021 02:05:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=W/41oaiZTCy66BhMG4hWadPAAIuGxagf5XEjuym7wCA=; b=MwPZhbR7LJQPGJT0L2Dem9R4Z2FidxO/PaO7TPdQFiM+DxWN474izoUJj1Dob4sb9BRb /6QzYganZQPOyOLoKUaf5/nGHYYqNNoThR+bMKJTubeZBXDPYpjOOwNdQbp+bzWCDPYQ 7U9KfDb84+Sho7a/IFRFhy4n14bdStssx2IYLewBfGFVfWpDcXI0ZgWSrp6XpksdjtKZ GsHbzY12Xi+NZCzyTQlXivZlTEXadsD8AYy0tqpoyRDtWVlbBSPJ4Hn6k1dl1dzKtU2R 0XA7GyJedEFCV67oCX0CiqAYakP9/o7AnqDq+HpDDunsBEfnLoaarif2Dga8SDrJHtFg Fw== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3bnkb4h5d8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Oct 2021 02:05:17 +0000 Received: from G4W10205.americas.hpqcorp.net (g4w10205.houston.hpecorp.net [16.207.82.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 923D55C; Wed, 13 Oct 2021 02:05:16 +0000 (UTC) Received: from G4W10204.americas.hpqcorp.net (2002:10cf:5210::10cf:5210) by G4W10205.americas.hpqcorp.net (2002:10cf:520f::10cf:520f) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 13 Oct 2021 02:05:16 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (15.241.52.12) by G4W10204.americas.hpqcorp.net (16.207.82.16) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Wed, 13 Oct 2021 02:05:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AT9E9X0PUAcr6heTJqyY8389Xw06FQ5xFfGjGwUVfa6kZfZn3xQnZeXrnEbz/IwGCv8ZPXDOYQ1egcaU3xQf3U8gcZVbcTbn83MrKoIRr+ErQ9B3Z13TA5Y+WI9K9XKPhRkzaEfWez5JkSz3oRjXvFgAa3ZB5naYJ4dPrpusCsz14dsuqF6pVi5iRaBZs+LibqHnXdJ3uHCavz1WOtqiGqFS3ZDpbfsI3WH98o/gx/58rCI2RTRONIxWNsO9sJlNr+q04u3wGafeLVQkHYZjQ3d+qbPVQKNq9XGXVgvMloq8C8ky0gbLg4s3kPv4IHkisfJBnBDTeHXZOXiPJUlK8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vMNiqFG/VK+NPT0jI7NJzW2WznAaGUt2ASa5ZLWZ8WM=; b=jNaJSxpgjUQp+xftN4vov2i6ARlM4gQqZZV+zbL074aC5eKByDIjrDo6ZSo95IFFIdFcoFUb5OQzhT+vI4b497/5HojCE8W10lIae5lTEfsH7wnhhZsL8D1/jQBuStZ93qgZNqOZVFmpRdljYTxaBonyRtfKCreBALVJV9fMDZzjBocLQik7Id82W0rBpsOwl1n8RdYrYqx5AaMUr3hgezmXm3vgkCJLVbPI7MoAWIhfU7SjcZub9Uemzw8cPiNX0MdEpAq7u02qwmPSsz4IfZKaKoNhghkXONBqOe5GQgqkHQxOEUQeMDztlZJI+iNv/NdAkYw6sO8RXhMx2nDylA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::16) by CS1PR8401MB0775.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.22; Wed, 13 Oct 2021 02:05:15 +0000 Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b88a:7fe7:6294:683f]) by CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b88a:7fe7:6294:683f%9]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 02:05:15 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "xiewenyi2@huawei.com" , "leif@nuviainc.com" , "ardb+tianocore@kernel.org" , "Schaefer, Daniel" CC: "songdongkuang@huawei.com" Subject: Re: [edk2-devel] [PATCH EDK2 v1 1/1] EmbeddedPkg:Fix compiler warning Thread-Topic: [edk2-devel] [PATCH EDK2 v1 1/1] EmbeddedPkg:Fix compiler warning Thread-Index: AQHXv0GIezJ9RYmyOEGV2jH4tyhO5KvQLtUg Date: Wed, 13 Oct 2021 02:05:15 +0000 Message-ID: References: <20211012081614.367072-1-xiewenyi2@huawei.com> <20211012081614.367072-2-xiewenyi2@huawei.com> In-Reply-To: <20211012081614.367072-2-xiewenyi2@huawei.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bf791572-b4e4-4179-99f2-08d98dede5dc x-ms-traffictypediagnostic: CS1PR8401MB0775: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:142; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UWiNDNGbKDmqT2+hEPmDupwBILRoGspO7OEFQj+ZFeFJFpX6pC828by4CJELN5XaHg4+0F5/XQdeWwKSFJHJvRdVTQk9ilUGTLDssrRjhp8ha+bMOJtiIZQOyVm1d8kdvmc4xEzQ2a7nB1LRKVDc8gltrI6xr2PQEGNAe9WAZN6Wc0Isp8y4VTSDm9TaK50ZAWAzZn4slD7LPF4zOaxj4aJLYFxMtsGajpCJritPlTGtCUqT5iEAMWXT4VbtGKWg0VxMuci8ANuzJVXggSandLlaVjvjBAfDW1DDvEs0Bwqkqd3wU5X6PDCAEZdwtm7XD2+Exh8NbHcooWB88TDf6G0An0Cge3GTkSIraXmPt1AL2YZ6qMPcu8ZRzG6ISgZq208mMMMY3J35sSX0FAH+eg3A/OaGrmlgsl20N2KEU90kX8ZRkKE4HA+LLo/LMO8z5ZD1aJNeZYAdSMEdvcGsB1IRdhO5VRYW9xwCgJFvAf3cvW7mmcp5CHvRZjY/Z2iO3kLmDfhzBe22TJ6aXZ0tP+5zCuzQjlETjamjsSr2LafQ1tXTfHJ7EzAsjmjV+w48k8llB1DazyD1uUtJqyUazmwwqdLK4Kp+Ah9tn5YbUHGuiGHpebvrTjn3p2UpAiFWm6PRpag6nAHf32yc1mEEQrzLx/WAoB/B8yfVkqHDK45S3TYRBNMudbOzzXK7x/NJcS58PTV/qvUiudMKKxTSMlC8QVmCncP901ZSWpBF2eTeWd4y+AOiUYDwmMyUH4Iy9E05+UzvSFEUm5ZYbywVGRgGP1j29U4fm3ov4oEA4lGfUwxa98YwrCa0FhUYZqYsV4c7CjAbnRVyqFBFcSCoYg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(4326008)(6506007)(66476007)(8676002)(26005)(53546011)(83380400001)(8936002)(6636002)(52536014)(186003)(316002)(38100700002)(9686003)(110136005)(66556008)(82960400001)(55016002)(2906002)(5660300002)(508600001)(66446008)(66946007)(38070700005)(966005)(64756008)(122000001)(7696005)(33656002)(76116006)(86362001)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vidZJ32T8MGYQBT6mtte7mu/gaQkKK2iZgxmnHpm4i97NOrr+Zaa/oY/Vcee?= =?us-ascii?Q?tE0jhPHozB2mv6MCZkp5fBs95oPerz5enyT4a2ZdUxB5tKVcelQk168peUeX?= =?us-ascii?Q?fjPBKrOlznlzrytlSBCCY6JK+lzGW/HESOXru9PJue5dzSL5j2bF2fVhQqa0?= =?us-ascii?Q?r49GL1ekeurV3R6fBOyCKj+dTlSUIjy063EZOLKZpsh76ZQBzxPIHw2WplCH?= =?us-ascii?Q?gXndBjPfc/aTT6/PSvELN+74jbDmwWb60macMQIW06Qre6P27NgR9GQDxw+8?= =?us-ascii?Q?fzRjJldT5eJ5WfgCrlxt9ef2MTqJY2Q7FR55XVv837/7LecHGzCtWWGqeOsm?= =?us-ascii?Q?GSNPXusk7KFgfA51n3XiwzrQDyO8mJ+CSZ8kOqdh7GTlDcc3CmoBm3jGldkK?= =?us-ascii?Q?BwJd/54KFbdrSpyqIoSzxf8WqrO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Mknwya3gHMyT4+lgEo53pf?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: bf791572-b4e4-4179-99f2-08d98dede5dc X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2021 02:05:15.1551 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dYJFDoxqcewIbIcaT6Lu1maEMWDs/Qajtum3Iu8SskQBRe40ZfPDmnlP2MYlU7QdD9XgOc93ipHQVQGw9RiO8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0775 X-OriginatorOrg: hpe.com X-Proofpoint-ORIG-GUID: U5fLJ8gT15GWZAF-BDbqZ04ZnMN2pXyR X-Proofpoint-GUID: U5fLJ8gT15GWZAF-BDbqZ04ZnMN2pXyR X-Proofpoint-UnRewURL: 2 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-12_07,2021-10-12_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 impostorscore=0 adultscore=0 suspectscore=0 mlxlogscore=879 clxscore=1011 spamscore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110130011 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Abner Chang > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > wenyi,xie via groups.io > Sent: Tuesday, October 12, 2021 4:16 PM > To: devel@edk2.groups.io; leif@nuviainc.com; ardb+tianocore@kernel.org; > Chang, Abner (HPS SW/FW Technologist) ; > Schaefer, Daniel > Cc: songdongkuang@huawei.com; xiewenyi2@huawei.com > Subject: [edk2-devel] [PATCH EDK2 v1 1/1] EmbeddedPkg:Fix compiler > warning >=20 > Fixes the following compiler warning in VS2019. >=20 > edk2\EmbeddedPkg\Library\GdbSerialDebugPortLib\GdbSerialDebugPortLib > .c(127): > error C2220: the following warning is treated as an error > edk2\EmbeddedPkg\Library\GdbSerialDebugPortLib\GdbSerialDebugPortLib > .c(127): > warning C4244: 'function': conversion from 'UINTN' to 'UINT32', possible > loss of data >=20 > edk2\EmbeddedPkg\Library\PrePiLib\FwVol.c(347): error C2220: the > following > warning is treated as an error > edk2\EmbeddedPkg\Library\PrePiLib\FwVol.c(347): warning C4244: > 'function': > conversion from 'UINTN' to 'UINT32', possible loss of data >=20 > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Cc: Abner Chang > Cc: Daniel Schaefer > Signed-off-by: Wenyi Xie > --- > EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c | 2 > +- > EmbeddedPkg/Library/PrePiLib/FwVol.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git > a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c > b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c > index d2bafcf69b60..0f50a8b64191 100644 > --- > a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c > +++ > b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c > @@ -18,7 +18,7 @@ >=20 >=20 > EFI_DEBUGPORT_PROTOCOL *gDebugPort =3D NULL; > -UINTN gTimeOut =3D 0; > +UINT32 gTimeOut =3D 0; >=20 > /** > The constructor function initializes the UART. > diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c > b/EmbeddedPkg/Library/PrePiLib/FwVol.c > index 881506edddaf..46ea5f733f60 100644 > --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c > +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c > @@ -298,7 +298,7 @@ FfsProcessSection ( > UINT16 SectionAttribute; > UINT32 AuthenticationStatus; > CHAR8 *CompressedData; > - UINTN CompressedDataLength; > + UINT32 CompressedDataLength; >=20 >=20 > *OutputBuffer =3D NULL; > -- > 2.20.1.windows.1 >=20 >=20 >=20 >=20 >=20