From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] atm: mpoa: remove 32-bit timekeeping Date: Thu, 30 Nov 2017 09:27:31 -0500 (EST) Message-ID: <20171130.092731.1542035335410279111.davem@davemloft.net> References: <20171127140337.3622068-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: y2038@lists.linaro.org, 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, ruchandani.tina@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: arnd@arndb.de Return-path: In-Reply-To: <20171127140337.3622068-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Arnd Bergmann Date: Mon, 27 Nov 2017 15:02:17 +0100 > From: Tina Ruchandani > > net/atm/mpoa_* files use 'struct timeval' to store event > timestamps. struct timeval uses a 32-bit seconds field which will > overflow in the year 2038 and beyond. Morever, the timestamps are being > compared only to get seconds elapsed, so struct timeval which stores > a seconds and microseconds field is an overkill. This patch replaces > the use of struct timeval with time64_t to store a 64-bit seconds field. > > Signed-off-by: Tina Ruchandani > Signed-off-by: Arnd Bergmann Applied.