OSDN Git Service

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)
commitd68712ee35069455ea4043d443c8d4fb9a1ee956
tree7b4f6aea79a4d264d2861a596c063c1a94dfbab4
parent5637bc5048340456176fcd4c8986edc1ac1acbe1
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