time: add get_timespec64 and put_timespec64
authorDeepa Dinamani <deepa.kernel@gmail.com>
Sat, 24 Jun 2017 18:45:02 +0000 (11:45 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Jun 2017 01:58:46 +0000 (21:58 -0400)
commitf59dd9c886acb3abb188e8e94a99436560976835
tree710c0991d9c08ef76eb60632ca2730bf59d9172b
parent938e7cf2d569833a5acf689a8926faf507826253
time: add get_timespec64 and put_timespec64

Add helper functions to convert between struct timespec64 and
struct timespec at userspace boundaries.

This is a preparatory patch to use timespec64 as the basic type
internally in the kernel as timespec is not y2038 safe on 32 bit systems.
The patch helps the cause by containing all data conversions at the
userspace boundaries within these functions.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/compat.h
include/linux/time.h
kernel/compat.c
kernel/time/time.c