diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 16:59:28 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 15:09:22 -0500 |
commit | 6883da8c6c15e85e7750c94be49ea156ed341c05 (patch) | |
tree | 6ad033c94adba251bd07673193fcf35ac7b1ec08 /kernel/compat.c | |
parent | 9aae8fc05d2d130797be436eb7cae29c32710193 (diff) |
switch compat_sys_sched_rr_get_interval to COMPAT_SYSCALL_DEFINE
... and make it unconditional - we want the sucker on all biarch
platforms, really. All kinds of wrappers and private implementations
can go now; fortunately, they don't cause name conflicts, so we can
do that one first without any bisect hazards.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/compat.c')
-rw-r--r-- | kernel/compat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index cf75a288f0c0..de6f3244d325 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -1203,9 +1203,9 @@ compat_sys_sysinfo(struct compat_sysinfo __user *info) | |||
1203 | return 0; | 1203 | return 0; |
1204 | } | 1204 | } |
1205 | 1205 | ||
1206 | #ifdef __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL | 1206 | COMPAT_SYSCALL_DEFINE2(sched_rr_get_interval, |
1207 | asmlinkage long compat_sys_sched_rr_get_interval(compat_pid_t pid, | 1207 | compat_pid_t, pid, |
1208 | struct compat_timespec __user *interval) | 1208 | struct compat_timespec __user *, interval) |
1209 | { | 1209 | { |
1210 | struct timespec t; | 1210 | struct timespec t; |
1211 | int ret; | 1211 | int ret; |
@@ -1218,7 +1218,6 @@ asmlinkage long compat_sys_sched_rr_get_interval(compat_pid_t pid, | |||
1218 | return -EFAULT; | 1218 | return -EFAULT; |
1219 | return ret; | 1219 | return ret; |
1220 | } | 1220 | } |
1221 | #endif /* __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL */ | ||
1222 | 1221 | ||
1223 | /* | 1222 | /* |
1224 | * Allocate user-space memory for the duration of a single system call, | 1223 | * Allocate user-space memory for the duration of a single system call, |