diff options
author | Chris Zankel <czankel@tensilica.com> | 2005-07-12 16:58:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 19:01:01 -0400 |
commit | 813e6783647489a8481d256944b7fd75ff79e035 (patch) | |
tree | fbbe043a63647d152e79bd279758116f21d779be /arch/xtensa | |
parent | c40504e87e28c52258458a53fefcd63f58e11a42 (diff) |
[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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/xtensa/kernel/syscalls.c | 4 | ||||
-rw-r--r-- | arch/xtensa/kernel/syscalls.h | 6 | ||||
-rw-r--r-- | arch/xtensa/kernel/vmlinux.lds.S | 6 |
4 files changed, 8 insertions, 9 deletions
diff --git a/arch/xtensa/kernel/asm-offsets.c b/arch/xtensa/kernel/asm-offsets.c index 840cd9a1d3d2..7cd1d7f8f608 100644 --- a/arch/xtensa/kernel/asm-offsets.c +++ b/arch/xtensa/kernel/asm-offsets.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <asm/processor.h> | 15 | #include <asm/processor.h> |
16 | 16 | ||
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <linux/sched.h> | ||
19 | #include <linux/stddef.h> | 18 | #include <linux/stddef.h> |
20 | #include <linux/thread_info.h> | 19 | #include <linux/thread_info.h> |
21 | #include <linux/ptrace.h> | 20 | #include <linux/ptrace.h> |
diff --git a/arch/xtensa/kernel/syscalls.c b/arch/xtensa/kernel/syscalls.c index 7270509c44de..f20c6494c518 100644 --- a/arch/xtensa/kernel/syscalls.c +++ b/arch/xtensa/kernel/syscalls.c | |||
@@ -69,8 +69,8 @@ int sys_pipe(int __user *userfds) | |||
69 | /* | 69 | /* |
70 | * Common code for old and new mmaps. | 70 | * Common code for old and new mmaps. |
71 | */ | 71 | */ |
72 | long sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, | 72 | long sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, |
73 | unsigned long flags, unsigned long fd, unsigned long pgoff) | 73 | unsigned long flags, unsigned long fd, unsigned long pgoff) |
74 | { | 74 | { |
75 | int error = -EBADF; | 75 | int error = -EBADF; |
76 | struct file * file = NULL; | 76 | struct file * file = NULL; |
diff --git a/arch/xtensa/kernel/syscalls.h b/arch/xtensa/kernel/syscalls.h index 07580696b602..216c10a31501 100644 --- a/arch/xtensa/kernel/syscalls.h +++ b/arch/xtensa/kernel/syscalls.h | |||
@@ -42,7 +42,7 @@ SYSCALL(sys_mknod, 3) | |||
42 | SYSCALL(sys_chmod, 2) /* 15 */ | 42 | SYSCALL(sys_chmod, 2) /* 15 */ |
43 | SYSCALL(sys_lchown, 3) | 43 | SYSCALL(sys_lchown, 3) |
44 | SYSCALL(sys_ni_syscall, 0) | 44 | SYSCALL(sys_ni_syscall, 0) |
45 | SYSCALL(sys_stat, 2) | 45 | SYSCALL(sys_newstat, 2) |
46 | SYSCALL(sys_lseek, 3) | 46 | SYSCALL(sys_lseek, 3) |
47 | SYSCALL(sys_getpid, 0) /* 20 */ | 47 | SYSCALL(sys_getpid, 0) /* 20 */ |
48 | SYSCALL(sys_mount, 5) | 48 | SYSCALL(sys_mount, 5) |
@@ -52,7 +52,7 @@ SYSCALL(sys_getuid, 0) | |||
52 | SYSCALL(sys_ni_syscall, 1) /* 25 */ | 52 | SYSCALL(sys_ni_syscall, 1) /* 25 */ |
53 | SYSCALL(sys_ptrace, 4) | 53 | SYSCALL(sys_ptrace, 4) |
54 | SYSCALL(sys_ni_syscall, 1) | 54 | SYSCALL(sys_ni_syscall, 1) |
55 | SYSCALL(sys_fstat, 2) | 55 | SYSCALL(sys_newfstat, 2) |
56 | SYSCALL(sys_ni_syscall, 0) | 56 | SYSCALL(sys_ni_syscall, 0) |
57 | SYSCALL(sys_utime, 2) /* 30 */ | 57 | SYSCALL(sys_utime, 2) /* 30 */ |
58 | SYSCALL(sys_ni_syscall, 0) | 58 | SYSCALL(sys_ni_syscall, 0) |
@@ -108,7 +108,7 @@ SYSCALL(sys_getgroups, 2) /* 80 */ | |||
108 | SYSCALL(sys_setgroups, 2) | 108 | SYSCALL(sys_setgroups, 2) |
109 | SYSCALL(sys_ni_syscall, 0) | 109 | SYSCALL(sys_ni_syscall, 0) |
110 | SYSCALL(sys_symlink, 2) | 110 | SYSCALL(sys_symlink, 2) |
111 | SYSCALL(sys_lstat, 2) | 111 | SYSCALL(sys_newlstat, 2) |
112 | SYSCALL(sys_readlink, 3) /* 85 */ | 112 | SYSCALL(sys_readlink, 3) /* 85 */ |
113 | SYSCALL(sys_uselib, 1) | 113 | SYSCALL(sys_uselib, 1) |
114 | SYSCALL(sys_swapon, 2) | 114 | SYSCALL(sys_swapon, 2) |
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index 476b2b53cd01..5ed71dfc8110 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -90,10 +90,10 @@ SECTIONS | |||
90 | *(.literal .text) | 90 | *(.literal .text) |
91 | *(.srom.text) | 91 | *(.srom.text) |
92 | VMLINUX_SYMBOL(__sched_text_start) = .; | 92 | VMLINUX_SYMBOL(__sched_text_start) = .; |
93 | *(.sched.text.literal .sched.text) | 93 | *(.sched.literal .sched.text) |
94 | VMLINUX_SYMBOL(__sched_text_end) = .; | 94 | VMLINUX_SYMBOL(__sched_text_end) = .; |
95 | VMLINUX_SYMBOL(__lock_text_start) = .; | 95 | VMLINUX_SYMBOL(__lock_text_start) = .; |
96 | *(.spinlock.text.literal .spinlock.text) | 96 | *(.spinlock.literal .spinlock.text) |
97 | VMLINUX_SYMBOL(__lock_text_end) = .; | 97 | VMLINUX_SYMBOL(__lock_text_end) = .; |
98 | 98 | ||
99 | } | 99 | } |
@@ -164,7 +164,7 @@ SECTIONS | |||
164 | __init_begin = .; | 164 | __init_begin = .; |
165 | .init.text : { | 165 | .init.text : { |
166 | _sinittext = .; | 166 | _sinittext = .; |
167 | *(.init.text.literal) *(.init.text) | 167 | *(.init.literal) *(.init.text) |
168 | _einittext = .; | 168 | _einittext = .; |
169 | } | 169 | } |
170 | 170 | ||