]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
y2038: futex: Move compat implementation into futex.c
authorArnd Bergmann <arnd@arndb.de>
Mon, 1 Feb 2021 15:12:03 +0000 (15:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:16:16 +0000 (23:16 +0100)
commitad940f6d96e218b7398773c9a1d1522e970c8832
tree9417d48dda15b2773a4475fab80e1106936984ce
parentbeffdc16d0372fe7231c992d7b0ace15c3c9637e
y2038: futex: Move compat implementation into futex.c

commit 04e7712f4460585e5eed5b853fd8b82a9943958f upstream.

We are going to share the compat_sys_futex() handler between 64-bit
architectures and 32-bit architectures that need to deal with both 32-bit
and 64-bit time_t, and this is easier if both entry points are in the
same file.

In fact, most other system call handlers do the same thing these days, so
let's follow the trend here and merge all of futex_compat.c into futex.c.

In the process, a few minor changes have to be done to make sure everything
still makes sense: handle_futex_death() and futex_cmpxchg_enabled() become
local symbol, and the compat version of the fetch_robust_entry() function
gets renamed to compat_fetch_robust_entry() to avoid a symbol clash.

This is intended as a purely cosmetic patch, no behavior should
change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[Lee: Back-ported to satisfy a build dependency]
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/futex.h
kernel/Makefile
kernel/futex.c
kernel/futex_compat.c [deleted file]