From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162268AbbKEQUC (ORCPT ); Thu, 5 Nov 2015 11:20:02 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:54591 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162061AbbKEQT7 (ORCPT ); Thu, 5 Nov 2015 11:19:59 -0500 From: Arnd Bergmann To: Tina Ruchandani Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, y2038 , Greg Kroah-Hartman Subject: Re: [PATCH v2] USB: usbmon: Remove timeval usage for timestamp Date: Thu, 05 Nov 2015 17:19:55 +0100 Message-ID: <3850398.6HZO8LfrIY@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151030055828.GA4821@google.com> References: <20151030055828.GA4821@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:l4TdJpi0aVUHTQBogTQ0nugc7s8A+AfuvFF4UlIZM7MSW+u+U1Y la6xitrPk7Rf8nXJxLI4UIm8dkUuLEVliZpbnQIvpFylXn/4MgUDWJ3BVaPNU1z8+VpUnEU NfgpoFTVRxUZh5QHFkbc2mRnC/6KZv4jdJI+vmVmwzNMWGaS8am3pMXVvAFDpc0GSscDRQD mNB1FP5Jtjf0teFs3WoJw== X-UI-Out-Filterresults: notjunk:1;V01:K0:NrNJevoJdw8=:ipW7pbYO69kQCSI51MwNHq UN9V3DvlvORLpZ0BkkELZJ9HDmqcqAXhQf7saPBJZbQKmZM2mvE4Q8aVeGt4qZn6swP8Iciro WQBAlZHFjcn9moF9jJ90j+IHbD6qoFyQJQ4SPv4oLXpg4Ndkji6dBG9R9DA4KCo4+SXnUk/53 EceB6JHfHyVKzsmu1nkUoZTBs4wJmeXEbDRW9SelIZPFzKyO8B9YfTk2yGVxsqBfWUGVFx916 ISqpSt4Z6DdcRAqWN3PvKeBP5b4wj4zR/YkNxX0gvrx2XRDP1u9N0NaeOqUM13iP02XKz3Zyl CKNK8NbX4GtmyJdRbsrmImAZZEUOFoFkp71CLIsRKoLRSHiIS3rQB6iXgpilZsKAS6N1twrL/ 5dEISJt2cKNhqwqqnsnzCYDZ+4/SfhbFt3YaB63lu7cqrRX4FfmulkAPHDr0cymKgkoNTIx5x CzkH25jCJbpybazaV0F6CfAtQr/qONOV7h09/0YR9Bwj6U9AUdfssJN+aAGDTrgfLAg9F8rsQ FcZGXA6+Tqt2yOn0S1e6VnuoT7EjzOgWccSI+L8AYuGN6wRBtCYqpS+IMjDuiHMSyhLZhzx17 6hfSxwK9ugDl5c3t/35BRxAUVnzYFxOTPImW+kIgO6TURe1FBAG/HXNCXjvxrY3KwIqahjals L0FS6GegSTU7OkV1aaDTwYw35aJ41TAlqrJVWMuSYIXpF1j0ijOFb4R5hX/9pnB6IIJZ3dL87 6Be+UJuLXPsH9nYt Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 29 October 2015 22:58:28 Tina Ruchandani wrote: > struct timeval' uses 32-bits for its seconds field and will overflow in > the year 2038 and beyond. This patch replaces the usage of 'struct timeval' > in mon_get_timestamp() with timespec64 which uses a 64-bit seconds field > and is y2038-safe. mon_get_timestamp() truncates the timestamp at 4096 seconds, > so the correctness of the code is not affected. This patch is part of a larger > attempt to remove instances of struct timeval and other 32-bit timekeeping > (time_t, struct timespec) from the kernel. > > Signed-off-by: Tina Ruchandani > Suggested-by: Arnd Bergmann Reviewed-by: Arnd Bergmann