[edk2-devel] [PATCH 0/2] EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit

Ard Biesheuvel ard.biesheuvel at arm.com
Mon Dec 21 12:17:33 UTC 2020


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 <ard.biesheuvel at arm.com>
> Cc: Leif Lindholm <leif at nuviainc.com>
> Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
> 

Acked-by: Ard Biesheuvel <ard.biesheuvel at arm.com>



> 
> 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(-)
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69319): https://edk2.groups.io/g/devel/message/69319
Mute This Topic: https://groups.io/mt/79123601/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list