y2038: sparc: remove use of struct timex
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Dec 2019 20:07:23 +0000 (21:07 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:33 +0000 (18:07 +0100)
commit251ec1c159e4874fbede0c3c586e317e177c0c9b
tree2ede8d79d52784d89046f6de080b2dbec8d535b0
parent4f9fbd893fe83a1193adceca41c8f7aa6c7382a1
y2038: sparc: remove use of struct timex

'struct timex' is one of the last users of 'struct timeval' and is
only referenced in one place in the kernel any more, to convert the
user space timex into the kernel-internal version on sparc64, with a
different tv_usec member type.

As a preparation for hiding the time_t definition and everything
using that in the kernel, change the implementation once more
to only convert the timeval member, and then enclose the
struct definition in an #ifdef.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/sparc/kernel/sys_sparc_64.c
include/uapi/linux/timex.h