Skip to content

Commit 813e678

Browse files
Chris ZankelLinus Torvalds
authored andcommitted
[PATCH] xtensa: remove old syscalls
This patch fixes some minor bugs introduced by the previous patch (remove old syscalls). Both patches remove the obsolete syscalls. The changes in this patch were suggested by Arnd Bergmann. The vmlinux.lds.S changes are required for the latest gcc/binutils. Signed-off-by: Chris Zankel <chris@zankel.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c40504e commit 813e678

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎arch/xtensa/kernel/asm-offsets.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <asm/processor.h>
1616

1717
#include <linux/types.h>
18-
#include <linux/sched.h>
1918
#include <linux/stddef.h>
2019
#include <linux/thread_info.h>
2120
#include <linux/ptrace.h>

‎arch/xtensa/kernel/syscalls.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ int sys_pipe(int __user *userfds)
6969
/*
7070
* Common code for old and new mmaps.
7171
*/
72-
long sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
73-
unsigned long flags, unsigned long fd, unsigned long pgoff)
72+
long sys_mmap(unsigned long addr, unsigned long len, unsigned long prot,
73+
unsigned long flags, unsigned long fd, unsigned long pgoff)
7474
{
7575
int error = -EBADF;
7676
struct file * file = NULL;

‎arch/xtensa/kernel/syscalls.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SYSCALL(sys_mknod, 3)
4242
SYSCALL(sys_chmod, 2) /* 15 */
4343
SYSCALL(sys_lchown, 3)
4444
SYSCALL(sys_ni_syscall, 0)
45-
SYSCALL(sys_stat, 2)
45+
SYSCALL(sys_newstat, 2)
4646
SYSCALL(sys_lseek, 3)
4747
SYSCALL(sys_getpid, 0) /* 20 */
4848
SYSCALL(sys_mount, 5)
@@ -52,7 +52,7 @@ SYSCALL(sys_getuid, 0)
5252
SYSCALL(sys_ni_syscall, 1) /* 25 */
5353
SYSCALL(sys_ptrace, 4)
5454
SYSCALL(sys_ni_syscall, 1)
55-
SYSCALL(sys_fstat, 2)
55+
SYSCALL(sys_newfstat, 2)
5656
SYSCALL(sys_ni_syscall, 0)
5757
SYSCALL(sys_utime, 2) /* 30 */
5858
SYSCALL(sys_ni_syscall, 0)
@@ -108,7 +108,7 @@ SYSCALL(sys_getgroups, 2) /* 80 */
108108
SYSCALL(sys_setgroups, 2)
109109
SYSCALL(sys_ni_syscall, 0)
110110
SYSCALL(sys_symlink, 2)
111-
SYSCALL(sys_lstat, 2)
111+
SYSCALL(sys_newlstat, 2)
112112
SYSCALL(sys_readlink, 3) /* 85 */
113113
SYSCALL(sys_uselib, 1)
114114
SYSCALL(sys_swapon, 2)

‎arch/xtensa/kernel/vmlinux.lds.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ SECTIONS
9090
*(.literal .text)
9191
*(.srom.text)
9292
VMLINUX_SYMBOL(__sched_text_start) = .;
93-
*(.sched.text.literal .sched.text)
93+
*(.sched.literal .sched.text)
9494
VMLINUX_SYMBOL(__sched_text_end) = .;
9595
VMLINUX_SYMBOL(__lock_text_start) = .;
96-
*(.spinlock.text.literal .spinlock.text)
96+
*(.spinlock.literal .spinlock.text)
9797
VMLINUX_SYMBOL(__lock_text_end) = .;
9898

9999
}
@@ -164,7 +164,7 @@ SECTIONS
164164
__init_begin = .;
165165
.init.text : {
166166
_sinittext = .;
167-
*(.init.text.literal) *(.init.text)
167+
*(.init.literal) *(.init.text)
168168
_einittext = .;
169169
}
170170

‎ipc/util.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int ipc_checkid(struct ipc_ids* ids, struct kern_ipc_perm* ipcp, int uid);
6767
void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out);
6868
void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out);
6969

70-
#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__)
70+
#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) || defined(__XTENSA__)
7171
/* On IA-64, we always use the "64-bit version" of the IPC structures. */
7272
# define ipc_parse_version(cmd) IPC_64
7373
#else

0 commit comments

Comments
 (0)