y2038: socket: use __kernel_old_timespec instead of timespec
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Oct 2019 20:04:46 +0000 (22:04 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Nov 2019 13:38:29 +0000 (14:38 +0100)
commitdf1b4ba9d4a8454285c53c2ec7224228105bc5c8
treea0880e0feaa26205a164e97c123b2f3856ec9e9e
parent0309f98f2fdc3526317e9bac150ca690f1f94ce6
y2038: socket: use __kernel_old_timespec instead of timespec

The 'timespec' type definition and helpers like ktime_to_timespec()
or timespec64_to_timespec() should no longer be used in the kernel so
we can remove them and avoid introducing y2038 issues in new code.

Change the socket code that needs to pass a timespec to user space for
backward compatibility to use __kernel_old_timespec instead.  This type
has the same layout but with a clearer defined name.

Slightly reformat tcp_recv_timestamp() for consistency after the removal
of timespec64_to_timespec().

Acked-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/skbuff.h
net/compat.c
net/ipv4/tcp.c
net/socket.c