aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-24 08:41:41 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-24 13:07:53 -0400
commit816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch)
tree421fa29aedff988e392f92780637553e275d37a0 /arch/frv
parent70ac4385a13f78bc478f26d317511893741b05bd (diff)
parentd384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts: fs/nfs/inode.c fs/super.c Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch 'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'arch/frv')
-rw-r--r--arch/frv/kernel/entry.S2
-rw-r--r--arch/frv/kernel/frv_ksyms.c18
-rw-r--r--arch/frv/kernel/irq-routing.c8
-rw-r--r--arch/frv/kernel/irq.c6
-rw-r--r--arch/frv/kernel/pm.c40
-rw-r--r--arch/frv/kernel/process.c2
-rw-r--r--arch/frv/kernel/setup.c2
-rw-r--r--arch/frv/kernel/signal.c22
-rw-r--r--arch/frv/kernel/sys_frv.c2
-rw-r--r--arch/frv/kernel/sysctl.c4
-rw-r--r--arch/frv/kernel/uaccess.c6
-rw-r--r--arch/frv/mb93090-mb00/pci-irq.c10
-rw-r--r--arch/frv/mm/kmap.c6
13 files changed, 55 insertions, 73 deletions
diff --git a/arch/frv/kernel/entry.S b/arch/frv/kernel/entry.S
index a9b59527a741..81d94e41a189 100644
--- a/arch/frv/kernel/entry.S
+++ b/arch/frv/kernel/entry.S
@@ -1474,7 +1474,7 @@ sys_call_table:
1474 .long sys_mknodat 1474 .long sys_mknodat
1475 .long sys_fchownat 1475 .long sys_fchownat
1476 .long sys_futimesat 1476 .long sys_futimesat
1477 .long sys_newfstatat /* 300 */ 1477 .long sys_fstatat64 /* 300 */
1478 .long sys_unlinkat 1478 .long sys_unlinkat
1479 .long sys_renameat 1479 .long sys_renameat
1480 .long sys_linkat 1480 .long sys_linkat
diff --git a/arch/frv/kernel/frv_ksyms.c b/arch/frv/kernel/frv_ksyms.c
index 0f273a7aca5a..dee637fffda5 100644
--- a/arch/frv/kernel/frv_ksyms.c
+++ b/arch/frv/kernel/frv_ksyms.c
@@ -26,16 +26,6 @@ extern long __memset_user(void *dst, const void *src, size_t count);
26EXPORT_SYMBOL(__ioremap); 26EXPORT_SYMBOL(__ioremap);
27EXPORT_SYMBOL(iounmap); 27EXPORT_SYMBOL(iounmap);
28 28
29EXPORT_SYMBOL(strnlen);
30EXPORT_SYMBOL(strrchr);
31EXPORT_SYMBOL(strstr);
32EXPORT_SYMBOL(strchr);
33EXPORT_SYMBOL(strcat);
34EXPORT_SYMBOL(strlen);
35EXPORT_SYMBOL(strcmp);
36EXPORT_SYMBOL(strncmp);
37EXPORT_SYMBOL(strncpy);
38
39EXPORT_SYMBOL(ip_fast_csum); 29EXPORT_SYMBOL(ip_fast_csum);
40 30
41#if 0 31#if 0
@@ -44,8 +34,6 @@ EXPORT_SYMBOL(local_bh_count);
44#endif 34#endif
45EXPORT_SYMBOL(kernel_thread); 35EXPORT_SYMBOL(kernel_thread);
46 36
47EXPORT_SYMBOL(enable_irq);
48EXPORT_SYMBOL(disable_irq);
49EXPORT_SYMBOL(__res_bus_clock_speed_HZ); 37EXPORT_SYMBOL(__res_bus_clock_speed_HZ);
50EXPORT_SYMBOL(__page_offset); 38EXPORT_SYMBOL(__page_offset);
51EXPORT_SYMBOL(__memcpy_user); 39EXPORT_SYMBOL(__memcpy_user);
@@ -62,18 +50,12 @@ EXPORT_SYMBOL(memory_end);
62 50
63EXPORT_SYMBOL(__debug_bug_trap); 51EXPORT_SYMBOL(__debug_bug_trap);
64 52
65/* Networking helper routines. */
66EXPORT_SYMBOL(csum_partial_copy);
67
68/* The following are special because they're not called 53/* The following are special because they're not called
69 explicitly (the C compiler generates them). Fortunately, 54 explicitly (the C compiler generates them). Fortunately,
70 their interface isn't gonna change any time soon now, so 55 their interface isn't gonna change any time soon now, so
71 it's OK to leave it out of version control. */ 56 it's OK to leave it out of version control. */
72EXPORT_SYMBOL(memcpy); 57EXPORT_SYMBOL(memcpy);
73EXPORT_SYMBOL(memset); 58EXPORT_SYMBOL(memset);
74EXPORT_SYMBOL(memcmp);
75EXPORT_SYMBOL(memscan);
76EXPORT_SYMBOL(memmove);
77 59
78EXPORT_SYMBOL(__outsl_ns); 60EXPORT_SYMBOL(__outsl_ns);
79EXPORT_SYMBOL(__insl_ns); 61EXPORT_SYMBOL(__insl_ns);
diff --git a/arch/frv/kernel/irq-routing.c b/arch/frv/kernel/irq-routing.c
index d4776d1f4e82..b90b70a761d1 100644
--- a/arch/frv/kernel/irq-routing.c
+++ b/arch/frv/kernel/irq-routing.c
@@ -112,7 +112,7 @@ struct irq_source frv_cpuuart[2] = {
112#define __CPUUART(X, A) \ 112#define __CPUUART(X, A) \
113 [X] = { \ 113 [X] = { \
114 .muxname = "uart", \ 114 .muxname = "uart", \
115 .muxdata = (volatile void __iomem *) A, \ 115 .muxdata = (volatile void __iomem *)(unsigned long)A,\
116 .irqmask = 1 << IRQ_CPU_UART##X, \ 116 .irqmask = 1 << IRQ_CPU_UART##X, \
117 .doirq = frv_cpuuart_doirq, \ 117 .doirq = frv_cpuuart_doirq, \
118 } 118 }
@@ -136,7 +136,7 @@ struct irq_source frv_cpudma[8] = {
136#define __CPUDMA(X, A) \ 136#define __CPUDMA(X, A) \
137 [X] = { \ 137 [X] = { \
138 .muxname = "dma", \ 138 .muxname = "dma", \
139 .muxdata = (volatile void __iomem *) A, \ 139 .muxdata = (volatile void __iomem *)(unsigned long)A,\
140 .irqmask = 1 << IRQ_CPU_DMA##X, \ 140 .irqmask = 1 << IRQ_CPU_DMA##X, \
141 .doirq = frv_cpudma_doirq, \ 141 .doirq = frv_cpudma_doirq, \
142 } 142 }
@@ -164,7 +164,7 @@ struct irq_source frv_cputimer[3] = {
164#define __CPUTIMER(X) \ 164#define __CPUTIMER(X) \
165 [X] = { \ 165 [X] = { \
166 .muxname = "timer", \ 166 .muxname = "timer", \
167 .muxdata = 0, \ 167 .muxdata = NULL, \
168 .irqmask = 1 << IRQ_CPU_TIMER##X, \ 168 .irqmask = 1 << IRQ_CPU_TIMER##X, \
169 .doirq = frv_cputimer_doirq, \ 169 .doirq = frv_cputimer_doirq, \
170 } 170 }
@@ -187,7 +187,7 @@ struct irq_source frv_cpuexternal[8] = {
187#define __CPUEXTERNAL(X) \ 187#define __CPUEXTERNAL(X) \
188 [X] = { \ 188 [X] = { \
189 .muxname = "ext", \ 189 .muxname = "ext", \
190 .muxdata = 0, \ 190 .muxdata = NULL, \
191 .irqmask = 1 << IRQ_CPU_EXTERNAL##X, \ 191 .irqmask = 1 << IRQ_CPU_EXTERNAL##X, \
192 .doirq = frv_cpuexternal_doirq, \ 192 .doirq = frv_cpuexternal_doirq, \
193 } 193 }
diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c
index 11fa326a8f62..8b112b361914 100644
--- a/arch/frv/kernel/irq.c
+++ b/arch/frv/kernel/irq.c
@@ -625,7 +625,7 @@ static struct proc_dir_entry * irq_dir [NR_IRQS];
625 625
626#define HEX_DIGITS 8 626#define HEX_DIGITS 8
627 627
628static unsigned int parse_hex_value (const char *buffer, 628static unsigned int parse_hex_value (const char __user *buffer,
629 unsigned long count, unsigned long *ret) 629 unsigned long count, unsigned long *ret)
630{ 630{
631 unsigned char hexnum [HEX_DIGITS]; 631 unsigned char hexnum [HEX_DIGITS];
@@ -672,7 +672,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
672 return sprintf (page, "%08lx\n", *mask); 672 return sprintf (page, "%08lx\n", *mask);
673} 673}
674 674
675static int prof_cpu_mask_write_proc (struct file *file, const char *buffer, 675static int prof_cpu_mask_write_proc (struct file *file, const char __user *buffer,
676 unsigned long count, void *data) 676 unsigned long count, void *data)
677{ 677{
678 unsigned long *mask = (unsigned long *) data, full_count = count, err; 678 unsigned long *mask = (unsigned long *) data, full_count = count, err;
@@ -711,7 +711,7 @@ void init_irq_proc (void)
711 int i; 711 int i;
712 712
713 /* create /proc/irq */ 713 /* create /proc/irq */
714 root_irq_dir = proc_mkdir("irq", 0); 714 root_irq_dir = proc_mkdir("irq", NULL);
715 715
716 /* create /proc/irq/prof_cpu_mask */ 716 /* create /proc/irq/prof_cpu_mask */
717 entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir); 717 entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir);
diff --git a/arch/frv/kernel/pm.c b/arch/frv/kernel/pm.c
index f0b8fff3e733..43ce28a13a5d 100644
--- a/arch/frv/kernel/pm.c
+++ b/arch/frv/kernel/pm.c
@@ -137,7 +137,7 @@ unsigned long sleep_phys_sp(void *sp)
137#define CTL_PM_P0 4 137#define CTL_PM_P0 4
138#define CTL_PM_CM 5 138#define CTL_PM_CM 5
139 139
140static int user_atoi(char *ubuf, size_t len) 140static int user_atoi(char __user *ubuf, size_t len)
141{ 141{
142 char buf[16]; 142 char buf[16];
143 unsigned long ret; 143 unsigned long ret;
@@ -159,7 +159,7 @@ static int user_atoi(char *ubuf, size_t len)
159 * Send us to sleep. 159 * Send us to sleep.
160 */ 160 */
161static int sysctl_pm_do_suspend(ctl_table *ctl, int write, struct file *filp, 161static int sysctl_pm_do_suspend(ctl_table *ctl, int write, struct file *filp,
162 void *buffer, size_t *lenp, loff_t *fpos) 162 void __user *buffer, size_t *lenp, loff_t *fpos)
163{ 163{
164 int retval, mode; 164 int retval, mode;
165 165
@@ -215,7 +215,7 @@ static int try_set_cmode(int new_cmode)
215 215
216 216
217static int cmode_procctl(ctl_table *ctl, int write, struct file *filp, 217static int cmode_procctl(ctl_table *ctl, int write, struct file *filp,
218 void *buffer, size_t *lenp, loff_t *fpos) 218 void __user *buffer, size_t *lenp, loff_t *fpos)
219{ 219{
220 int new_cmode; 220 int new_cmode;
221 221
@@ -227,9 +227,9 @@ static int cmode_procctl(ctl_table *ctl, int write, struct file *filp,
227 return try_set_cmode(new_cmode)?:*lenp; 227 return try_set_cmode(new_cmode)?:*lenp;
228} 228}
229 229
230static int cmode_sysctl(ctl_table *table, int *name, int nlen, 230static int cmode_sysctl(ctl_table *table, int __user *name, int nlen,
231 void *oldval, size_t *oldlenp, 231 void __user *oldval, size_t __user *oldlenp,
232 void *newval, size_t newlen, void **context) 232 void __user *newval, size_t newlen, void **context)
233{ 233{
234 if (oldval && oldlenp) { 234 if (oldval && oldlenp) {
235 size_t oldlen; 235 size_t oldlen;
@@ -240,7 +240,7 @@ static int cmode_sysctl(ctl_table *table, int *name, int nlen,
240 if (oldlen != sizeof(int)) 240 if (oldlen != sizeof(int))
241 return -EINVAL; 241 return -EINVAL;
242 242
243 if (put_user(clock_cmode_current, (unsigned int *)oldval) || 243 if (put_user(clock_cmode_current, (unsigned __user *)oldval) ||
244 put_user(sizeof(int), oldlenp)) 244 put_user(sizeof(int), oldlenp))
245 return -EFAULT; 245 return -EFAULT;
246 } 246 }
@@ -250,7 +250,7 @@ static int cmode_sysctl(ctl_table *table, int *name, int nlen,
250 if (newlen != sizeof(int)) 250 if (newlen != sizeof(int))
251 return -EINVAL; 251 return -EINVAL;
252 252
253 if (get_user(new_cmode, (int *)newval)) 253 if (get_user(new_cmode, (int __user *)newval))
254 return -EFAULT; 254 return -EFAULT;
255 255
256 return try_set_cmode(new_cmode)?:1; 256 return try_set_cmode(new_cmode)?:1;
@@ -318,7 +318,7 @@ static int try_set_cm(int new_cm)
318} 318}
319 319
320static int p0_procctl(ctl_table *ctl, int write, struct file *filp, 320static int p0_procctl(ctl_table *ctl, int write, struct file *filp,
321 void *buffer, size_t *lenp, loff_t *fpos) 321 void __user *buffer, size_t *lenp, loff_t *fpos)
322{ 322{
323 int new_p0; 323 int new_p0;
324 324
@@ -330,9 +330,9 @@ static int p0_procctl(ctl_table *ctl, int write, struct file *filp,
330 return try_set_p0(new_p0)?:*lenp; 330 return try_set_p0(new_p0)?:*lenp;
331} 331}
332 332
333static int p0_sysctl(ctl_table *table, int *name, int nlen, 333static int p0_sysctl(ctl_table *table, int __user *name, int nlen,
334 void *oldval, size_t *oldlenp, 334 void __user *oldval, size_t __user *oldlenp,
335 void *newval, size_t newlen, void **context) 335 void __user *newval, size_t newlen, void **context)
336{ 336{
337 if (oldval && oldlenp) { 337 if (oldval && oldlenp) {
338 size_t oldlen; 338 size_t oldlen;
@@ -343,7 +343,7 @@ static int p0_sysctl(ctl_table *table, int *name, int nlen,
343 if (oldlen != sizeof(int)) 343 if (oldlen != sizeof(int))
344 return -EINVAL; 344 return -EINVAL;
345 345
346 if (put_user(clock_p0_current, (unsigned int *)oldval) || 346 if (put_user(clock_p0_current, (unsigned __user *)oldval) ||
347 put_user(sizeof(int), oldlenp)) 347 put_user(sizeof(int), oldlenp))
348 return -EFAULT; 348 return -EFAULT;
349 } 349 }
@@ -353,7 +353,7 @@ static int p0_sysctl(ctl_table *table, int *name, int nlen,
353 if (newlen != sizeof(int)) 353 if (newlen != sizeof(int))
354 return -EINVAL; 354 return -EINVAL;
355 355
356 if (get_user(new_p0, (int *)newval)) 356 if (get_user(new_p0, (int __user *)newval))
357 return -EFAULT; 357 return -EFAULT;
358 358
359 return try_set_p0(new_p0)?:1; 359 return try_set_p0(new_p0)?:1;
@@ -362,7 +362,7 @@ static int p0_sysctl(ctl_table *table, int *name, int nlen,
362} 362}
363 363
364static int cm_procctl(ctl_table *ctl, int write, struct file *filp, 364static int cm_procctl(ctl_table *ctl, int write, struct file *filp,
365 void *buffer, size_t *lenp, loff_t *fpos) 365 void __user *buffer, size_t *lenp, loff_t *fpos)
366{ 366{
367 int new_cm; 367 int new_cm;
368 368
@@ -374,9 +374,9 @@ static int cm_procctl(ctl_table *ctl, int write, struct file *filp,
374 return try_set_cm(new_cm)?:*lenp; 374 return try_set_cm(new_cm)?:*lenp;
375} 375}
376 376
377static int cm_sysctl(ctl_table *table, int *name, int nlen, 377static int cm_sysctl(ctl_table *table, int __user *name, int nlen,
378 void *oldval, size_t *oldlenp, 378 void __user *oldval, size_t __user *oldlenp,
379 void *newval, size_t newlen, void **context) 379 void __user *newval, size_t newlen, void **context)
380{ 380{
381 if (oldval && oldlenp) { 381 if (oldval && oldlenp) {
382 size_t oldlen; 382 size_t oldlen;
@@ -387,7 +387,7 @@ static int cm_sysctl(ctl_table *table, int *name, int nlen,
387 if (oldlen != sizeof(int)) 387 if (oldlen != sizeof(int))
388 return -EINVAL; 388 return -EINVAL;
389 389
390 if (put_user(clock_cm_current, (unsigned int *)oldval) || 390 if (put_user(clock_cm_current, (unsigned __user *)oldval) ||
391 put_user(sizeof(int), oldlenp)) 391 put_user(sizeof(int), oldlenp))
392 return -EFAULT; 392 return -EFAULT;
393 } 393 }
@@ -397,7 +397,7 @@ static int cm_sysctl(ctl_table *table, int *name, int nlen,
397 if (newlen != sizeof(int)) 397 if (newlen != sizeof(int))
398 return -EINVAL; 398 return -EINVAL;
399 399
400 if (get_user(new_cm, (int *)newval)) 400 if (get_user(new_cm, (int __user *)newval))
401 return -EFAULT; 401 return -EFAULT;
402 402
403 return try_set_cm(new_cm)?:1; 403 return try_set_cm(new_cm)?:1;
diff --git a/arch/frv/kernel/process.c b/arch/frv/kernel/process.c
index 0fff8a61ef2a..489e6c489cbe 100644
--- a/arch/frv/kernel/process.c
+++ b/arch/frv/kernel/process.c
@@ -246,7 +246,7 @@ int copy_thread(int nr, unsigned long clone_flags,
246/* 246/*
247 * sys_execve() executes a new program. 247 * sys_execve() executes a new program.
248 */ 248 */
249asmlinkage int sys_execve(char *name, char **argv, char **envp) 249asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __user * __user *envp)
250{ 250{
251 int error; 251 int error;
252 char * filename; 252 char * filename;
diff --git a/arch/frv/kernel/setup.c b/arch/frv/kernel/setup.c
index 5908deae9607..1f7d65f29e78 100644
--- a/arch/frv/kernel/setup.c
+++ b/arch/frv/kernel/setup.c
@@ -814,7 +814,7 @@ void __init setup_arch(char **cmdline_p)
814 * - by now the stack is part of the init task */ 814 * - by now the stack is part of the init task */
815 printk("Memory %08lx-%08lx\n", memory_start, memory_end); 815 printk("Memory %08lx-%08lx\n", memory_start, memory_end);
816 816
817 if (memory_start == memory_end) BUG(); 817 BUG_ON(memory_start == memory_end);
818 818
819 init_mm.start_code = (unsigned long) &_stext; 819 init_mm.start_code = (unsigned long) &_stext;
820 init_mm.end_code = (unsigned long) &_etext; 820 init_mm.end_code = (unsigned long) &_etext;
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c
index 679c1d5cc958..b8a5882b8625 100644
--- a/arch/frv/kernel/signal.c
+++ b/arch/frv/kernel/signal.c
@@ -98,7 +98,7 @@ int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss)
98 98
99struct sigframe 99struct sigframe
100{ 100{
101 void (*pretcode)(void); 101 __sigrestore_t pretcode;
102 int sig; 102 int sig;
103 struct sigcontext sc; 103 struct sigcontext sc;
104 unsigned long extramask[_NSIG_WORDS-1]; 104 unsigned long extramask[_NSIG_WORDS-1];
@@ -107,10 +107,10 @@ struct sigframe
107 107
108struct rt_sigframe 108struct rt_sigframe
109{ 109{
110 void (*pretcode)(void); 110 __sigrestore_t pretcode;
111 int sig; 111 int sig;
112 struct siginfo *pinfo; 112 struct siginfo __user *pinfo;
113 void *puc; 113 void __user *puc;
114 struct siginfo info; 114 struct siginfo info;
115 struct ucontext uc; 115 struct ucontext uc;
116 uint32_t retcode[2]; 116 uint32_t retcode[2];
@@ -233,7 +233,7 @@ static inline void __user *get_sigframe(struct k_sigaction *ka,
233 233
234 /* This is the X/Open sanctioned signal stack switching. */ 234 /* This is the X/Open sanctioned signal stack switching. */
235 if (ka->sa.sa_flags & SA_ONSTACK) { 235 if (ka->sa.sa_flags & SA_ONSTACK) {
236 if (! on_sig_stack(sp)) 236 if (! sas_ss_flags(sp))
237 sp = current->sas_ss_sp + current->sas_ss_size; 237 sp = current->sas_ss_sp + current->sas_ss_size;
238 } 238 }
239 239
@@ -284,7 +284,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, sigset_t *set)
284 * setlos #__NR_sigreturn,gr7 284 * setlos #__NR_sigreturn,gr7
285 * tira gr0,0 285 * tira gr0,0
286 */ 286 */
287 if (__put_user((void (*)(void))frame->retcode, &frame->pretcode) || 287 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) ||
288 __put_user(0x8efc0000|__NR_sigreturn, &frame->retcode[0]) || 288 __put_user(0x8efc0000|__NR_sigreturn, &frame->retcode[0]) ||
289 __put_user(0xc0700000, &frame->retcode[1])) 289 __put_user(0xc0700000, &frame->retcode[1]))
290 goto give_sigsegv; 290 goto give_sigsegv;
@@ -300,7 +300,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, sigset_t *set)
300 300
301 if (get_personality & FDPIC_FUNCPTRS) { 301 if (get_personality & FDPIC_FUNCPTRS) {
302 struct fdpic_func_descriptor __user *funcptr = 302 struct fdpic_func_descriptor __user *funcptr =
303 (struct fdpic_func_descriptor *) ka->sa.sa_handler; 303 (struct fdpic_func_descriptor __user *) ka->sa.sa_handler;
304 __get_user(__frame->pc, &funcptr->text); 304 __get_user(__frame->pc, &funcptr->text);
305 __get_user(__frame->gr15, &funcptr->GOT); 305 __get_user(__frame->gr15, &funcptr->GOT);
306 } else { 306 } else {
@@ -359,8 +359,8 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
359 359
360 /* Create the ucontext. */ 360 /* Create the ucontext. */
361 if (__put_user(0, &frame->uc.uc_flags) || 361 if (__put_user(0, &frame->uc.uc_flags) ||
362 __put_user(0, &frame->uc.uc_link) || 362 __put_user(NULL, &frame->uc.uc_link) ||
363 __put_user((void*)current->sas_ss_sp, &frame->uc.uc_stack.ss_sp) || 363 __put_user((void __user *)current->sas_ss_sp, &frame->uc.uc_stack.ss_sp) ||
364 __put_user(sas_ss_flags(__frame->sp), &frame->uc.uc_stack.ss_flags) || 364 __put_user(sas_ss_flags(__frame->sp), &frame->uc.uc_stack.ss_flags) ||
365 __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size)) 365 __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size))
366 goto give_sigsegv; 366 goto give_sigsegv;
@@ -382,7 +382,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
382 * setlos #__NR_sigreturn,gr7 382 * setlos #__NR_sigreturn,gr7
383 * tira gr0,0 383 * tira gr0,0
384 */ 384 */
385 if (__put_user((void (*)(void))frame->retcode, &frame->pretcode) || 385 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) ||
386 __put_user(0x8efc0000|__NR_rt_sigreturn, &frame->retcode[0]) || 386 __put_user(0x8efc0000|__NR_rt_sigreturn, &frame->retcode[0]) ||
387 __put_user(0xc0700000, &frame->retcode[1])) 387 __put_user(0xc0700000, &frame->retcode[1]))
388 goto give_sigsegv; 388 goto give_sigsegv;
@@ -398,7 +398,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
398 __frame->gr9 = (unsigned long) &frame->info; 398 __frame->gr9 = (unsigned long) &frame->info;
399 399
400 if (get_personality & FDPIC_FUNCPTRS) { 400 if (get_personality & FDPIC_FUNCPTRS) {
401 struct fdpic_func_descriptor *funcptr = 401 struct fdpic_func_descriptor __user *funcptr =
402 (struct fdpic_func_descriptor __user *) ka->sa.sa_handler; 402 (struct fdpic_func_descriptor __user *) ka->sa.sa_handler;
403 __get_user(__frame->pc, &funcptr->text); 403 __get_user(__frame->pc, &funcptr->text);
404 __get_user(__frame->gr15, &funcptr->GOT); 404 __get_user(__frame->gr15, &funcptr->GOT);
diff --git a/arch/frv/kernel/sys_frv.c b/arch/frv/kernel/sys_frv.c
index 931aa6d895e3..c4d4348c9e8e 100644
--- a/arch/frv/kernel/sys_frv.c
+++ b/arch/frv/kernel/sys_frv.c
@@ -32,7 +32,7 @@
32 * sys_pipe() is the normal C calling standard for creating 32 * sys_pipe() is the normal C calling standard for creating
33 * a pipe. It's not the way unix traditionally does this, though. 33 * a pipe. It's not the way unix traditionally does this, though.
34 */ 34 */
35asmlinkage long sys_pipe(unsigned long * fildes) 35asmlinkage long sys_pipe(unsigned long __user * fildes)
36{ 36{
37 int fd[2]; 37 int fd[2];
38 int error; 38 int error;
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c
index 408b0f382b42..b908863d6593 100644
--- a/arch/frv/kernel/sysctl.c
+++ b/arch/frv/kernel/sysctl.c
@@ -49,7 +49,7 @@ static void frv_change_dcache_mode(unsigned long newmode)
49 * handle requests to dynamically switch the write caching mode delivered by /proc 49 * handle requests to dynamically switch the write caching mode delivered by /proc
50 */ 50 */
51static int procctl_frv_cachemode(ctl_table *table, int write, struct file *filp, 51static int procctl_frv_cachemode(ctl_table *table, int write, struct file *filp,
52 void *buffer, size_t *lenp, loff_t *ppos) 52 void __user *buffer, size_t *lenp, loff_t *ppos)
53{ 53{
54 unsigned long hsr0; 54 unsigned long hsr0;
55 char buff[8]; 55 char buff[8];
@@ -123,7 +123,7 @@ static int procctl_frv_cachemode(ctl_table *table, int write, struct file *filp,
123 */ 123 */
124#ifdef CONFIG_MMU 124#ifdef CONFIG_MMU
125static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp, 125static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp,
126 void *buffer, size_t *lenp, loff_t *ppos) 126 void __user *buffer, size_t *lenp, loff_t *ppos)
127{ 127{
128 pid_t pid; 128 pid_t pid;
129 char buff[16], *p; 129 char buff[16], *p;
diff --git a/arch/frv/kernel/uaccess.c b/arch/frv/kernel/uaccess.c
index 9b751c0f0e84..9fb771a20df3 100644
--- a/arch/frv/kernel/uaccess.c
+++ b/arch/frv/kernel/uaccess.c
@@ -17,7 +17,7 @@
17/* 17/*
18 * copy a null terminated string from userspace 18 * copy a null terminated string from userspace
19 */ 19 */
20long strncpy_from_user(char *dst, const char *src, long count) 20long strncpy_from_user(char *dst, const char __user *src, long count)
21{ 21{
22 unsigned long max; 22 unsigned long max;
23 char *p, ch; 23 char *p, ch;
@@ -70,9 +70,9 @@ EXPORT_SYMBOL(strncpy_from_user);
70 * 70 *
71 * Return 0 on exception, a value greater than N if too long 71 * Return 0 on exception, a value greater than N if too long
72 */ 72 */
73long strnlen_user(const char *src, long count) 73long strnlen_user(const char __user *src, long count)
74{ 74{
75 const char *p; 75 const char __user *p;
76 long err = 0; 76 long err = 0;
77 char ch; 77 char ch;
78 78
diff --git a/arch/frv/mb93090-mb00/pci-irq.c b/arch/frv/mb93090-mb00/pci-irq.c
index c4a1144c98b0..45ae39d84b69 100644
--- a/arch/frv/mb93090-mb00/pci-irq.c
+++ b/arch/frv/mb93090-mb00/pci-irq.c
@@ -32,11 +32,11 @@
32 */ 32 */
33 33
34static const uint8_t __initdata pci_bus0_irq_routing[32][4] = { 34static const uint8_t __initdata pci_bus0_irq_routing[32][4] = {
35 [0 ] { IRQ_FPGA_MB86943_PCI_INTA }, 35 [0 ] = { IRQ_FPGA_MB86943_PCI_INTA },
36 [16] { IRQ_FPGA_RTL8029_INTA }, 36 [16] = { IRQ_FPGA_RTL8029_INTA },
37 [17] { IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD, IRQ_FPGA_PCI_INTA, IRQ_FPGA_PCI_INTB }, 37 [17] = { IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD, IRQ_FPGA_PCI_INTA, IRQ_FPGA_PCI_INTB },
38 [18] { IRQ_FPGA_PCI_INTB, IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD, IRQ_FPGA_PCI_INTA }, 38 [18] = { IRQ_FPGA_PCI_INTB, IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD, IRQ_FPGA_PCI_INTA },
39 [19] { IRQ_FPGA_PCI_INTA, IRQ_FPGA_PCI_INTB, IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD }, 39 [19] = { IRQ_FPGA_PCI_INTA, IRQ_FPGA_PCI_INTB, IRQ_FPGA_PCI_INTC, IRQ_FPGA_PCI_INTD },
40}; 40};
41 41
42void __init pcibios_irq_init(void) 42void __init pcibios_irq_init(void)
diff --git a/arch/frv/mm/kmap.c b/arch/frv/mm/kmap.c
index c54f18e65ea6..40b62c5c2951 100644
--- a/arch/frv/mm/kmap.c
+++ b/arch/frv/mm/kmap.c
@@ -31,15 +31,15 @@
31 * Map some physical address range into the kernel address space. 31 * Map some physical address range into the kernel address space.
32 */ 32 */
33 33
34void *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag) 34void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag)
35{ 35{
36 return (void *)physaddr; 36 return (void __iomem *)physaddr;
37} 37}
38 38
39/* 39/*
40 * Unmap a ioremap()ed region again 40 * Unmap a ioremap()ed region again
41 */ 41 */
42void iounmap(void *addr) 42void iounmap(void volatile __iomem *addr)
43{ 43{
44} 44}
45 45