]> git.baikalelectronics.ru Git - kernel.git/commit
y2038: sparc: remove use of struct timex
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Dec 2019 14:48:53 +0000 (15:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jan 2020 10:14:28 +0000 (11:14 +0100)
commit170a6b2e69adc204558f2f5930241b976d9c5ac2
tree7b4f6aea79a4d264d2861a596c063c1a94dfbab4
parentbe65d5a14b63eff76f9bb4cc21ec716325841060
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>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys_sparc_64.c
include/uapi/linux/timex.h