diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2012-12-17 19:01:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:18 -0500 |
commit | 0ad50c3896afbb3c103409a18260e601b87a744c (patch) | |
tree | 3a59c1e90b3ee62daf18bc9689cf454a31f164be /arch/tile/include | |
parent | 918854a65e856574523d94763ef2a2b48ad55a25 (diff) |
compat: generic compat_sys_sched_rr_get_interval() implementation
This function is used by sparc, powerpc tile and arm64 for compat support.
The patch adds a generic implementation with a wrapper for PowerPC to do
the u32->int sign extension.
The reason for a single patch covering powerpc, tile, sparc and arm64 is
to keep it bisectable, otherwise kernel building may fail with mismatched
function declarations.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/tile/include')
-rw-r--r-- | arch/tile/include/asm/compat.h | 2 | ||||
-rw-r--r-- | arch/tile/include/asm/unistd.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index ca61fb4296b3..88f3c227afd9 100644 --- a/arch/tile/include/asm/compat.h +++ b/arch/tile/include/asm/compat.h | |||
@@ -296,8 +296,6 @@ long compat_sys_sync_file_range2(int fd, unsigned int flags, | |||
296 | long compat_sys_fallocate(int fd, int mode, | 296 | long compat_sys_fallocate(int fd, int mode, |
297 | u32 offset_lo, u32 offset_hi, | 297 | u32 offset_lo, u32 offset_hi, |
298 | u32 len_lo, u32 len_hi); | 298 | u32 len_lo, u32 len_hi); |
299 | long compat_sys_sched_rr_get_interval(compat_pid_t pid, | ||
300 | struct compat_timespec __user *interval); | ||
301 | 299 | ||
302 | /* Assembly trampoline to avoid clobbering r0. */ | 300 | /* Assembly trampoline to avoid clobbering r0. */ |
303 | long _compat_sys_rt_sigreturn(void); | 301 | long _compat_sys_rt_sigreturn(void); |
diff --git a/arch/tile/include/asm/unistd.h b/arch/tile/include/asm/unistd.h index b51c6ee3cd6c..fe841e7d4963 100644 --- a/arch/tile/include/asm/unistd.h +++ b/arch/tile/include/asm/unistd.h | |||
@@ -14,6 +14,7 @@ | |||
14 | /* In compat mode, we use sys_llseek() for compat_sys_llseek(). */ | 14 | /* In compat mode, we use sys_llseek() for compat_sys_llseek(). */ |
15 | #ifdef CONFIG_COMPAT | 15 | #ifdef CONFIG_COMPAT |
16 | #define __ARCH_WANT_SYS_LLSEEK | 16 | #define __ARCH_WANT_SYS_LLSEEK |
17 | #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL | ||
17 | #endif | 18 | #endif |
18 | #define __ARCH_WANT_SYS_NEWFSTATAT | 19 | #define __ARCH_WANT_SYS_NEWFSTATAT |
19 | #define __ARCH_WANT_SYS_EXECVE | 20 | #define __ARCH_WANT_SYS_EXECVE |