aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/xtensa/kernel/asm-offsets.c1
-rw-r--r--arch/xtensa/kernel/syscalls.c4
-rw-r--r--arch/xtensa/kernel/syscalls.h6
-rw-r--r--arch/xtensa/kernel/vmlinux.lds.S6
-rw-r--r--ipc/util.h2
5 files changed, 9 insertions, 10 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 */
72long sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, 72long 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)
42SYSCALL(sys_chmod, 2) /* 15 */ 42SYSCALL(sys_chmod, 2) /* 15 */
43SYSCALL(sys_lchown, 3) 43SYSCALL(sys_lchown, 3)
44SYSCALL(sys_ni_syscall, 0) 44SYSCALL(sys_ni_syscall, 0)
45SYSCALL(sys_stat, 2) 45SYSCALL(sys_newstat, 2)
46SYSCALL(sys_lseek, 3) 46SYSCALL(sys_lseek, 3)
47SYSCALL(sys_getpid, 0) /* 20 */ 47SYSCALL(sys_getpid, 0) /* 20 */
48SYSCALL(sys_mount, 5) 48SYSCALL(sys_mount, 5)
@@ -52,7 +52,7 @@ SYSCALL(sys_getuid, 0)
52SYSCALL(sys_ni_syscall, 1) /* 25 */ 52SYSCALL(sys_ni_syscall, 1) /* 25 */
53SYSCALL(sys_ptrace, 4) 53SYSCALL(sys_ptrace, 4)
54SYSCALL(sys_ni_syscall, 1) 54SYSCALL(sys_ni_syscall, 1)
55SYSCALL(sys_fstat, 2) 55SYSCALL(sys_newfstat, 2)
56SYSCALL(sys_ni_syscall, 0) 56SYSCALL(sys_ni_syscall, 0)
57SYSCALL(sys_utime, 2) /* 30 */ 57SYSCALL(sys_utime, 2) /* 30 */
58SYSCALL(sys_ni_syscall, 0) 58SYSCALL(sys_ni_syscall, 0)
@@ -108,7 +108,7 @@ SYSCALL(sys_getgroups, 2) /* 80 */
108SYSCALL(sys_setgroups, 2) 108SYSCALL(sys_setgroups, 2)
109SYSCALL(sys_ni_syscall, 0) 109SYSCALL(sys_ni_syscall, 0)
110SYSCALL(sys_symlink, 2) 110SYSCALL(sys_symlink, 2)
111SYSCALL(sys_lstat, 2) 111SYSCALL(sys_newlstat, 2)
112SYSCALL(sys_readlink, 3) /* 85 */ 112SYSCALL(sys_readlink, 3) /* 85 */
113SYSCALL(sys_uselib, 1) 113SYSCALL(sys_uselib, 1)
114SYSCALL(sys_swapon, 2) 114SYSCALL(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
diff --git a/ipc/util.h b/ipc/util.h
index 07d689452363..44348ca5a707 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -67,7 +67,7 @@ int ipc_checkid(struct ipc_ids* ids, struct kern_ipc_perm* ipcp, int uid);
67void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out); 67void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out);
68void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out); 68void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out);
69 69
70#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) 70#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) || defined(__XTENSA__)
71 /* On IA-64, we always use the "64-bit version" of the IPC structures. */ 71 /* On IA-64, we always use the "64-bit version" of the IPC structures. */
72# define ipc_parse_version(cmd) IPC_64 72# define ipc_parse_version(cmd) IPC_64
73#else 73#else