From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754399AbbI3HVd (ORCPT ); Wed, 30 Sep 2015 03:21:33 -0400 Received: from www.linutronix.de ([62.245.132.108]:56835 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207AbbI3HVb (ORCPT ); Wed, 30 Sep 2015 03:21:31 -0400 Date: Wed, 30 Sep 2015 09:20:52 +0200 (CEST) From: Thomas Gleixner To: Arnd Bergmann cc: y2038@lists.linaro.org, John Stultz , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Rodolfo Giometti , linux-net-drivers@solarflare.com, Shradha Shah , Richard Cochran Subject: Re: [PATCH 2/5] ntp/pps: replace getnstime_raw_and_real with 64-bit version In-Reply-To: <1443471692-2946597-3-git-send-email-arnd@arndb.de> Message-ID: References: <1443471692-2946597-1-git-send-email-arnd@arndb.de> <1443471692-2946597-3-git-send-email-arnd@arndb.de> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Sep 2015, Arnd Bergmann wrote: > There is exactly one caller of getnstime_raw_and_real in the kernel, > which is the pps_get_ts function. This changes the caller and > the implementation to work on timespec64 types rather than timespec, > to avoid the time_t overflow on 32-bit architectures. > > For consistency with the other new functions (ktime_get_seconds, > ktime_get_real_*, ...), I'm renaming the function to > ktime_get_raw_and_real_ts64. > > We still need to convert from the internal 64-bit type to 32 bit > types in the caller, but this conversion is now pushed out from > getnstime_raw_and_real to pps_get_ts. A follow-up patch changes > the remaining pps code to completely avoid the conversion. > > Signed-off-by: Arnd Bergmann Reviewed-by: Thomas Gleixner