USB: usbmon: Use 64bit timestamp for mon_bin_hdr
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 30 Oct 2015 05:44:31 +0000 (22:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2015 22:54:06 +0000 (14:54 -0800)
commit8ab0f723af247af8dd92196c152c8f1da0254b2f
tree6fe10e035147ee34462c215ff24a6061ecf61758
parent18fc4ebdc7057478497682047db5acfb25b35c49
USB: usbmon: Use 64bit timestamp for mon_bin_hdr

struct mon_bin_hdr allows for a 64-bit seconds timestamp. The code
currently uses 'struct timeval' to populate the timestamp in mon_bin_hdr,
which has a 32-bit seconds field and will overflow in year 2038 and beyond.
This patch replaces 'struct timeval' with 'struct timespec64' which is
y2038 safe. 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 <ruchandani.tina@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mon/mon_bin.c