]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/futex.c
y2038: futex: Move compat implementation into futex.c
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Apr 2018 14:31:07 +0000 (16:31 +0200)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:47 +0000 (14:21 -0300)
commitf6d7b2337ad78819cd3ce70a88c59ea9befff7d0
treea3b9b21da0c801372f5f34dcbd8366d0a4e61cd5
parent483f32071b94ea5455e0d7c5acdb4d5689da2b8a
y2038: futex: Move compat implementation into futex.c

BugLink: https://bugs.launchpad.net/bugs/1855787
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/futex.h
kernel/Makefile
kernel/futex.c
kernel/futex_compat.c [deleted file]