lkml.org 
[lkml]   [2016]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: fix unused efi_get_time function
On Fri, 17 Jun, at 04:51:29PM, Arnd Bergmann wrote:
> Nothing calls the efi_get_time function on x86, but it does suffer
> from the 32-bit time_t overflow in 2038.
>
> To avoid that if anyone starts calling it, this changes the function
> to use timespec64 and mktime64 instead.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> The obvious alternative would be to remove the function, I'll send
> that patch as well, so you can pick one or the other.
>
> arch/x86/platform/efi/efi.c | 6 +++---
> include/linux/efi.h | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)

Looks good, thanks Arnd!

\
 
 \ /
  Last update: 2016-06-23 16:01    [W:0.035 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site