From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752195AbbJBHr1 (ORCPT ); Fri, 2 Oct 2015 03:47:27 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:35236 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbbJBHrY (ORCPT ); Fri, 2 Oct 2015 03:47:24 -0400 Date: Fri, 2 Oct 2015 09:47:16 +0200 From: Richard Cochran To: Arnd Bergmann Cc: netdev@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, "David S. Miller" , Jeff Kirsher , intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH 03/12] net: igb: avoid using timespec Message-ID: <20151002074716.GA3930@localhost.localdomain> References: <1443612402-3000775-1-git-send-email-arnd@arndb.de> <1443612402-3000775-4-git-send-email-arnd@arndb.de> <20151001191745.GC1872@localhost.localdomain> <1803983.ImzkvzgWES@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1803983.ImzkvzgWES@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 01, 2015 at 10:01:57PM +0200, Arnd Bergmann wrote: > I tried to use this pattern whenever I convert the 64-bit 'long long' > tv_sec member of 'struct timespec64' into a 32-bit number, to annotate > the loss of range. Sounds reasonable to me. > I have thought about defining separate helpers like this ... > This would make it even more explicit, but my fear was that I was > adding too much complexity like that. I think a cast plus a comment when needed is clear enough. Thanks, Richard