y2038: make ns_to_compat_timeval use __kernel_old_timeval
authorArnd Bergmann <arnd@arndb.de>
Thu, 23 Nov 2017 13:22:06 +0000 (14:22 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Nov 2019 13:38:29 +0000 (14:38 +0100)
commit693737b6cc2edc258040b28462a90b63503394d9
treed0d77f867fd1522ff54b26b431beb005fe1553a3
parentdf1b4ba9d4a8454285c53c2ec7224228105bc5c8
y2038: make ns_to_compat_timeval use __kernel_old_timeval

This gets us one step closer to removing 'struct timeval' from the
kernel. We still keep __kernel_old_timeval for interfaces that we cannot
fix otherwise, and ns_to_compat_timeval() is provably safe for interfaces
that are legitimate users of __kernel_old_timeval on native kernels,
so this is an obvious change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/compat.h