Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755312AbcCWN20 (ORCPT ); Wed, 23 Mar 2016 09:28:26 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:58506 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754652AbcCWN2S (ORCPT ); Wed, 23 Mar 2016 09:28:18 -0400 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Tina Ruchandani , Kalle Valo , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Y2038] [PATCH v2] prism54: isl_38xx: Replace 'struct timeval' Date: Wed, 23 Mar 2016 14:28:10 +0100 Message-ID: <3071133.ssTx2e0NSm@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160322221615.GA55727@localhost> References: <20160322221615.GA55727@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:pU472EhTfei/+OveQqpvItV5Xn1vjOhupoh2Fbx0LV78UFejI5p JMzIDkRU5j9fFDb9oaRmGvV42J4v4+qEGqzEewoCOQXmhAmU6paI0eu0ukJ96ldyRn4hdei U6rpHiGXRnVqNA9wcXy4kSt8LlwBCq6DPmRqFE3vtqlYw+GT1wl+yUC/MyCIl5Pn/L78HB+ f2Jm750WMCvnvupmDxzdg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ioX04D8TcDE=:3Ch6Uc5sRwu4KjCbq53bpl As5i9DJWtx/nxfNrhHHd2EibFTMwY2zhYS2Bq6nFIWZ9syiCTcybR6+n0yENwl6YnXGtQq48Q C8gDuc3RfRxnf7NFAzC7XHCQxZ7QicShC2VbLRN1S4Bc/c/ygaE6YOA9wdS4FYO5imuBwznH2 Ayxdz5sYyZhaJKqWbEMmaybR2W/blt4pBSUWYwMrmRpzI9tIN+ko3xpCXUCLQUiCJXCB7lIHV la27ebFXf1t0EGdqxeTpJGMKZ1bo6JolzJRmWMVZP89TLGGUsiHVDIMvJFBmogKhNWLSOUALd JUCQyfQsZgjo/xsMz1s9MhPddq9EZAoixydO3oam6eie6Oy8gO+Ss3ZPPc7QEkjYVV3q/EaM/ dhIiGV+uhGmucHkWsaLXmYoK4UtZOCwxUv21rHUQzie0jtAz6ZVMohZ5d/G0ZEVkziSgDp8w4 Axj66KYY9y1acLrkP8oEqPCiMYSBJXg0LA8vJ4A5X3B7xXEgDYhKLszMMp8FGYfk1M5gFWWxR Hw6QfEMn80TezJ2FroVg40IRkw1U6eLu/RoHYC+oWrB8ciz8JbKu0DfU6RxI+7Jwu2WijcgGn 4N5QVL5LOHdJ7078OPH6e+FnoB+qaapN3jip0mpFrvO9Zg58xtIQQ62BqOXqX98CUrM9YjToW qPKDZ20hcAFZFDR+xSxOdWrY1JD/B1xy4iBgnhEazVDMINrh3rmtbdVqhsqg9nQvfOupkgDj+ P7UsFIKdxnMKxiMo Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 26 On Tuesday 22 March 2016 15:16:15 Tina Ruchandani wrote: > 'struct timeval' uses a 32-bit seconds field which will overflow in > year 2038 and beyond. This patch is part of a larger effort to remove > all instances of 'struct timeval' from the kernel and replace them > with 64-bit timekeeping variables. > The correctness of the code isn't affected by this patch - the seconds > value being printed would earlier be wrong due to overflow in timeval, > and now it gets truncated to 32-bit due to the 'long' cast used on > tv.sec field to prevent compiler warnings. Truly fixing this would > require changing the debug print to print more than 8 digits and > use a different specifier from %li. > The patch was build-tested / debugged by removing the > "if VERBOSE > SHOW_ERROR_MESSAGES" guards. > > Signed-off-by: Tina Ruchandani > Suggested-by: Arnd Bergmann > -- > Changes in v2: > - Changed printf specifier as suggested by Arnd Bergmann to > avoid truncation. > The patch looks great now, but it no longer matches the description, as you actually fix the correctness. Arnd