From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbcFWNcP (ORCPT ); Thu, 23 Jun 2016 09:32:15 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:34942 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751427AbcFWNcN (ORCPT ); Thu, 23 Jun 2016 09:32:13 -0400 Date: Thu, 23 Jun 2016 14:32:05 +0100 From: Matt Fleming To: Arnd Bergmann Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, y2038@lists.linaro.org, Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: fix unused efi_get_time function Message-ID: <20160623133205.GH8415@codeblueprint.co.uk> References: <20160617145152.3569706-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160617145152.3569706-1-arnd@arndb.de> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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!