From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.groups.io with SMTP id smtpd.web12.1741.1608566234805255177 for ; Mon, 21 Dec 2020 07:57:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Het7BWNy; spf=pass (domain: redhat.com, ip: 63.128.21.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608566234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2TrJhTfLqDYLsT0M6FTVd0locnpE/Y0mlA4g0O1Tbao=; b=Het7BWNynUI71UrUO9KjmJ372rsLX3WwKA8C7rBHWZqruuA7vOKocS8lMrH8eqKtRhltoS QP3A6U69DMNctukTwgT6QvUW1j7Ob5zueiCDL8o8y6KJkKar5n2p2mqR2CM2ZOt/UCuJ+y +uSYQuzcKP1ObApaa27gfGUGJv4kQmQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-5BbRcA8HOdyxLvV4ABps8A-1; Mon, 21 Dec 2020 10:57:08 -0500 X-MC-Unique: 5BbRcA8HOdyxLvV4ABps8A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1C7D115722; Mon, 21 Dec 2020 15:57:07 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-71.ams2.redhat.com [10.36.114.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 04A3D620D7; Mon, 21 Dec 2020 15:57:05 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH 0/2] EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit To: devel@edk2.groups.io, ard.biesheuvel@arm.com Cc: Leif Lindholm , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= References: <20201221113657.6779-1-lersek@redhat.com> From: "Laszlo Ersek" Message-ID: <58e92166-35cf-ac3f-ce00-9bd76fe39b66@redhat.com> Date: Mon, 21 Dec 2020 16:57:05 +0100 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 12/21/20 13:17, Ard Biesheuvel wrote: > On 12/21/20 12:36 PM, Laszlo Ersek wrote: >> Repo: https://pagure.io/lersek/edk2.git >> Branch: timebaselib_uintn >> >> Through the virtio-fs driver, EmbeddedPkg/TimeBaseLib got exposed to >> VS2019 for the first time. VS2019 flagged an arguably unintended, >> implicit UINTN->UINT32 conversion in EfiTimeToEpoch(); let's remedy >> that. >> >> Cc: Ard Biesheuvel >> Cc: Leif Lindholm >> Cc: Philippe Mathieu-Daudé >> > > Acked-by: Ard Biesheuvel Merged as commit range 3ce3274a5ea4..c06635ea3f4b, via . Thank you! Laszlo >> Laszlo Ersek (2): >> ArmPlatformPkg/PL031RealTimeClockLib: cast EfiTimeToEpoch() val. to >> UINT32 >> EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit >> >> EmbeddedPkg/Include/Library/TimeBaseLib.h | 2 +- >> ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c | 2 +- >> EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.c | 6 +++--- >> 3 files changed, 5 insertions(+), 5 deletions(-) >> > > > > > >