diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-02 11:34:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-02 11:34:06 -0500 |
commit | 14cc0b55b70e297a4b5411733d58c6cdc2d7f1be (patch) | |
tree | 2aa0fe9d267d5ae1ab1b47a67d31fbbc1dbf928e /arch/parisc/kernel | |
parent | 3cfb07743a5bffecba83f0da26444e85c0a9bfbb (diff) | |
parent | 0e803bafbb7d1b8a9031104f1a982a01b45da4c6 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
Pull signal/compat fixes from Al Viro:
"Fixes for several regressions introduced in the last signal.git pile,
along with fixing bugs in truncate and ftruncate compat (on just about
anything biarch at least one of those two had been done wrong)."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal:
compat: restore timerfd settime and gettime compat syscalls
[regression] braino in "sparc: convert to ksignal"
fix compat truncate/ftruncate
switch lseek to COMPAT_SYSCALL_DEFINE
lseek() and truncate() on sparc really need sign extension
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/sys_parisc32.c | 10 | ||||
-rw-r--r-- | arch/parisc/kernel/syscall_table.S | 6 |
2 files changed, 3 insertions, 13 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c index eca69bb8ef5f..051c8b90231f 100644 --- a/arch/parisc/kernel/sys_parisc32.c +++ b/arch/parisc/kernel/sys_parisc32.c | |||
@@ -79,16 +79,6 @@ asmlinkage long sys32_sendfile64(u32 out_fd, u32 in_fd, | |||
79 | (loff_t __user *)offset, count); | 79 | (loff_t __user *)offset, count); |
80 | } | 80 | } |
81 | 81 | ||
82 | |||
83 | /* lseek() needs a wrapper because 'offset' can be negative, but the top | ||
84 | * half of the argument has been zeroed by syscall.S. | ||
85 | */ | ||
86 | |||
87 | asmlinkage int sys32_lseek(unsigned int fd, int offset, unsigned int origin) | ||
88 | { | ||
89 | return sys_lseek(fd, offset, origin); | ||
90 | } | ||
91 | |||
92 | asmlinkage long sys32_semctl(int semid, int semnum, int cmd, union semun arg) | 82 | asmlinkage long sys32_semctl(int semid, int semnum, int cmd, union semun arg) |
93 | { | 83 | { |
94 | union semun u; | 84 | union semun u; |
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index fc9cab1cc2df..884b91b028f0 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S | |||
@@ -76,7 +76,7 @@ | |||
76 | ENTRY_SAME(socket) | 76 | ENTRY_SAME(socket) |
77 | /* struct stat is MAYBE identical wide and narrow ?? */ | 77 | /* struct stat is MAYBE identical wide and narrow ?? */ |
78 | ENTRY_COMP(newstat) | 78 | ENTRY_COMP(newstat) |
79 | ENTRY_DIFF(lseek) | 79 | ENTRY_COMP(lseek) |
80 | ENTRY_SAME(getpid) /* 20 */ | 80 | ENTRY_SAME(getpid) /* 20 */ |
81 | /* the 'void * data' parameter may need re-packing in wide */ | 81 | /* the 'void * data' parameter may need re-packing in wide */ |
82 | ENTRY_COMP(mount) | 82 | ENTRY_COMP(mount) |
@@ -165,8 +165,8 @@ | |||
165 | ENTRY_SAME(mmap2) | 165 | ENTRY_SAME(mmap2) |
166 | ENTRY_SAME(mmap) /* 90 */ | 166 | ENTRY_SAME(mmap) /* 90 */ |
167 | ENTRY_SAME(munmap) | 167 | ENTRY_SAME(munmap) |
168 | ENTRY_SAME(truncate) | 168 | ENTRY_COMP(truncate) |
169 | ENTRY_SAME(ftruncate) | 169 | ENTRY_COMP(ftruncate) |
170 | ENTRY_SAME(fchmod) | 170 | ENTRY_SAME(fchmod) |
171 | ENTRY_SAME(fchown) /* 95 */ | 171 | ENTRY_SAME(fchown) /* 95 */ |
172 | ENTRY_SAME(getpriority) | 172 | ENTRY_SAME(getpriority) |