]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: use 64-bit time_t based interfaces
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Aug 2018 22:43:44 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Aug 2018 23:20:27 +0000 (16:20 -0700)
commit8240c4b5944bfae53e134c44cd6f3f46d702bcd0
tree29056d6176d856721209ad5c182e9fa101b75a2e
parent45b3307d95e8e9b544176b03e03f631ede0af492
firewire: use 64-bit time_t based interfaces

32-bit CLOCK_REALTIME timestamps overflow in year 2038, so all such
interfaces are deprecated now.  For the FW_CDEV_IOC_GET_CYCLE_TIMER2
ioctl, we already support 64-bit timestamps, but the implementation
still uses timespec.

This changes the code to use timespec64 instead with the appropriate
accessor functions.

Link: http://lkml.kernel.org/r/20180711124456.1023039-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firewire/core-cdev.c