]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
y2038: timerfd: Use timespec64 internally
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2018 20:03:38 +0000 (22:03 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Nov 2019 13:38:30 +0000 (14:38 +0100)
commitbde9e963af2d0a9762781c4dccaef21696d5bb94
tree8725edbb54991804c69435b99052ef255e8aec78
parente2bb80d55d75ce7fd300fcd8d47a97413c3cd322
y2038: timerfd: Use timespec64 internally

timerfd_show() uses a 'struct itimerspec' internally, but that is
deprecated because of the time_t overflow and a conflict with the glibc
type of the same name that is now incompatible in user space.

Use a pair of timespec64 variables instead as a simple replacement.

As this removes the last use of itimerspec from the kernel, allowing the
removal of the definition from the uapi headers along with timespec and
timeval later.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/timerfd.c