diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
tree | 2624a44924c625c367f3cebf937853b9da2de282 /arch/mips/kernel/syscall.c | |
parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'arch/mips/kernel/syscall.c')
-rw-r--r-- | arch/mips/kernel/syscall.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 5e8a18a8e2bd..0721314db657 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
9 | */ | 9 | */ |
10 | #include <linux/config.h> | ||
11 | #include <linux/a.out.h> | 10 | #include <linux/a.out.h> |
12 | #include <linux/capability.h> | 11 | #include <linux/capability.h> |
13 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
@@ -301,7 +300,7 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | |||
301 | * | 300 | * |
302 | * This is really horribly ugly. | 301 | * This is really horribly ugly. |
303 | */ | 302 | */ |
304 | asmlinkage int sys_ipc (uint call, int first, int second, | 303 | asmlinkage int sys_ipc (unsigned int call, int first, int second, |
305 | unsigned long third, void __user *ptr, long fifth) | 304 | unsigned long third, void __user *ptr, long fifth) |
306 | { | 305 | { |
307 | int version, ret; | 306 | int version, ret; |
@@ -359,18 +358,18 @@ asmlinkage int sys_ipc (uint call, int first, int second, | |||
359 | case SHMAT: | 358 | case SHMAT: |
360 | switch (version) { | 359 | switch (version) { |
361 | default: { | 360 | default: { |
362 | ulong raddr; | 361 | unsigned long raddr; |
363 | ret = do_shmat (first, (char __user *) ptr, second, | 362 | ret = do_shmat (first, (char __user *) ptr, second, |
364 | &raddr); | 363 | &raddr); |
365 | if (ret) | 364 | if (ret) |
366 | return ret; | 365 | return ret; |
367 | return put_user (raddr, (ulong __user *) third); | 366 | return put_user (raddr, (unsigned long __user *) third); |
368 | } | 367 | } |
369 | case 1: /* iBCS2 emulator entry point */ | 368 | case 1: /* iBCS2 emulator entry point */ |
370 | if (!segment_eq(get_fs(), get_ds())) | 369 | if (!segment_eq(get_fs(), get_ds())) |
371 | return -EINVAL; | 370 | return -EINVAL; |
372 | return do_shmat (first, (char __user *) ptr, second, | 371 | return do_shmat (first, (char __user *) ptr, second, |
373 | (ulong *) third); | 372 | (unsigned long *) third); |
374 | } | 373 | } |
375 | case SHMDT: | 374 | case SHMDT: |
376 | return sys_shmdt ((char __user *)ptr); | 375 | return sys_shmdt ((char __user *)ptr); |