diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-01-06 18:33:08 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-02-06 18:13:27 -0500 |
commit | 8dabe7245bbc134f2cfcc12cde75c019dab924cc (patch) | |
tree | b08c1d41803f1586bc32a22334fa2b183b0eb0ba /kernel/time/hrtimer.c | |
parent | 7948450d455658601fedbf3b3e9890b4b36a214a (diff) |
y2038: syscalls: rename y2038 compat syscalls
A lot of system calls that pass a time_t somewhere have an implementation
using a COMPAT_SYSCALL_DEFINEx() on 64-bit architectures, and have
been reworked so that this implementation can now be used on 32-bit
architectures as well.
The missing step is to redefine them using the regular SYSCALL_DEFINEx()
to get them out of the compat namespace and make it possible to build them
on 32-bit architectures.
Any system call that ends in 'time' gets a '32' suffix on its name for
that version, while the others get a '_time32' suffix, to distinguish
them from the normal version, which takes a 64-bit time argument in the
future.
In this step, only 64-bit architectures are changed, doing this rename
first lets us avoid touching the 32-bit architectures twice.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/time/hrtimer.c')
-rw-r--r-- | kernel/time/hrtimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index f5cfa1b73d6f..0f5f96075110 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c | |||
@@ -1771,7 +1771,7 @@ SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp, | |||
1771 | 1771 | ||
1772 | #ifdef CONFIG_COMPAT_32BIT_TIME | 1772 | #ifdef CONFIG_COMPAT_32BIT_TIME |
1773 | 1773 | ||
1774 | COMPAT_SYSCALL_DEFINE2(nanosleep, struct old_timespec32 __user *, rqtp, | 1774 | SYSCALL_DEFINE2(nanosleep_time32, struct old_timespec32 __user *, rqtp, |
1775 | struct old_timespec32 __user *, rmtp) | 1775 | struct old_timespec32 __user *, rmtp) |
1776 | { | 1776 | { |
1777 | struct timespec64 tu; | 1777 | struct timespec64 tu; |