diff options
Diffstat (limited to 'arch')
26 files changed, 14 insertions, 100 deletions
diff --git a/arch/alpha/include/asm/posix_types.h b/arch/alpha/include/asm/posix_types.h index 24779fc95994..5a8a48320efe 100644 --- a/arch/alpha/include/asm/posix_types.h +++ b/arch/alpha/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned int __kernel_ino_t; | 10 | typedef unsigned int __kernel_ino_t; |
11 | #define __kernel_ino_t __kernel_ino_t | 11 | #define __kernel_ino_t __kernel_ino_t |
12 | 12 | ||
13 | typedef unsigned int __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ | 13 | typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ |
17 | 14 | ||
18 | #include <asm-generic/posix_types.h> | 15 | #include <asm-generic/posix_types.h> |
diff --git a/arch/arm/include/asm/posix_types.h b/arch/arm/include/asm/posix_types.h index efdf99045d87..d2de9cbbcd9b 100644 --- a/arch/arm/include/asm/posix_types.h +++ b/arch/arm/include/asm/posix_types.h | |||
@@ -22,9 +22,6 @@ | |||
22 | typedef unsigned short __kernel_mode_t; | 22 | typedef unsigned short __kernel_mode_t; |
23 | #define __kernel_mode_t __kernel_mode_t | 23 | #define __kernel_mode_t __kernel_mode_t |
24 | 24 | ||
25 | typedef unsigned short __kernel_nlink_t; | ||
26 | #define __kernel_nlink_t __kernel_nlink_t | ||
27 | |||
28 | typedef unsigned short __kernel_ipc_pid_t; | 25 | typedef unsigned short __kernel_ipc_pid_t; |
29 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 26 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
30 | 27 | ||
diff --git a/arch/avr32/include/asm/posix_types.h b/arch/avr32/include/asm/posix_types.h index 74667bfc88cc..9ba9e749b3f3 100644 --- a/arch/avr32/include/asm/posix_types.h +++ b/arch/avr32/include/asm/posix_types.h | |||
@@ -17,9 +17,6 @@ | |||
17 | typedef unsigned short __kernel_mode_t; | 17 | typedef unsigned short __kernel_mode_t; |
18 | #define __kernel_mode_t __kernel_mode_t | 18 | #define __kernel_mode_t __kernel_mode_t |
19 | 19 | ||
20 | typedef unsigned short __kernel_nlink_t; | ||
21 | #define __kernel_nlink_t __kernel_nlink_t | ||
22 | |||
23 | typedef unsigned short __kernel_ipc_pid_t; | 20 | typedef unsigned short __kernel_ipc_pid_t; |
24 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 21 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
25 | 22 | ||
diff --git a/arch/blackfin/include/asm/posix_types.h b/arch/blackfin/include/asm/posix_types.h index 41bc1875c4d7..1bd3436db6a7 100644 --- a/arch/blackfin/include/asm/posix_types.h +++ b/arch/blackfin/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned int __kernel_ipc_pid_t; | 13 | typedef unsigned int __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/cris/include/asm/posix_types.h b/arch/cris/include/asm/posix_types.h index 234891c74e2b..ce4e51793151 100644 --- a/arch/cris/include/asm/posix_types.h +++ b/arch/cris/include/asm/posix_types.h | |||
@@ -15,9 +15,6 @@ | |||
15 | typedef unsigned short __kernel_mode_t; | 15 | typedef unsigned short __kernel_mode_t; |
16 | #define __kernel_mode_t __kernel_mode_t | 16 | #define __kernel_mode_t __kernel_mode_t |
17 | 17 | ||
18 | typedef unsigned short __kernel_nlink_t; | ||
19 | #define __kernel_nlink_t __kernel_nlink_t | ||
20 | |||
21 | typedef unsigned short __kernel_ipc_pid_t; | 18 | typedef unsigned short __kernel_ipc_pid_t; |
22 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 19 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
23 | 20 | ||
diff --git a/arch/frv/include/asm/posix_types.h b/arch/frv/include/asm/posix_types.h index 3f34cb45fbb3..fe512af74a5a 100644 --- a/arch/frv/include/asm/posix_types.h +++ b/arch/frv/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/h8300/include/asm/posix_types.h b/arch/h8300/include/asm/posix_types.h index bc4c34efb1ad..91e62ba4c7b0 100644 --- a/arch/h8300/include/asm/posix_types.h +++ b/arch/h8300/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/ia64/include/asm/posix_types.h b/arch/ia64/include/asm/posix_types.h index 7323ab9467eb..99ee1d6510cf 100644 --- a/arch/ia64/include/asm/posix_types.h +++ b/arch/ia64/include/asm/posix_types.h | |||
@@ -1,9 +1,6 @@ | |||
1 | #ifndef _ASM_IA64_POSIX_TYPES_H | 1 | #ifndef _ASM_IA64_POSIX_TYPES_H |
2 | #define _ASM_IA64_POSIX_TYPES_H | 2 | #define _ASM_IA64_POSIX_TYPES_H |
3 | 3 | ||
4 | typedef unsigned int __kernel_nlink_t; | ||
5 | #define __kernel_nlink_t __kernel_nlink_t | ||
6 | |||
7 | typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ | 4 | typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ |
8 | 5 | ||
9 | #include <asm-generic/posix_types.h> | 6 | #include <asm-generic/posix_types.h> |
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index f00ba025375d..d7f558c1e711 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -604,12 +604,6 @@ pfm_unprotect_ctx_ctxsw(pfm_context_t *x, unsigned long f) | |||
604 | spin_unlock(&(x)->ctx_lock); | 604 | spin_unlock(&(x)->ctx_lock); |
605 | } | 605 | } |
606 | 606 | ||
607 | static inline unsigned long | ||
608 | pfm_get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags, unsigned long exec) | ||
609 | { | ||
610 | return get_unmapped_area(file, addr, len, pgoff, flags); | ||
611 | } | ||
612 | |||
613 | /* forward declaration */ | 607 | /* forward declaration */ |
614 | static const struct dentry_operations pfmfs_dentry_operations; | 608 | static const struct dentry_operations pfmfs_dentry_operations; |
615 | 609 | ||
@@ -2333,8 +2327,8 @@ pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t | |||
2333 | down_write(&task->mm->mmap_sem); | 2327 | down_write(&task->mm->mmap_sem); |
2334 | 2328 | ||
2335 | /* find some free area in address space, must have mmap sem held */ | 2329 | /* find some free area in address space, must have mmap sem held */ |
2336 | vma->vm_start = pfm_get_unmapped_area(NULL, 0, size, 0, MAP_PRIVATE|MAP_ANONYMOUS, 0); | 2330 | vma->vm_start = get_unmapped_area(NULL, 0, size, 0, MAP_PRIVATE|MAP_ANONYMOUS); |
2337 | if (vma->vm_start == 0UL) { | 2331 | if (IS_ERR_VALUE(vma->vm_start)) { |
2338 | DPRINT(("Cannot find unmapped area for size %ld\n", size)); | 2332 | DPRINT(("Cannot find unmapped area for size %ld\n", size)); |
2339 | up_write(&task->mm->mmap_sem); | 2333 | up_write(&task->mm->mmap_sem); |
2340 | goto error; | 2334 | goto error; |
diff --git a/arch/ia64/kernel/sys_ia64.c b/arch/ia64/kernel/sys_ia64.c index 609d50056a6c..d9439ef2f661 100644 --- a/arch/ia64/kernel/sys_ia64.c +++ b/arch/ia64/kernel/sys_ia64.c | |||
@@ -171,22 +171,9 @@ asmlinkage unsigned long | |||
171 | ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, | 171 | ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, |
172 | unsigned long new_addr) | 172 | unsigned long new_addr) |
173 | { | 173 | { |
174 | extern unsigned long do_mremap (unsigned long addr, | 174 | addr = sys_mremap(addr, old_len, new_len, flags, new_addr); |
175 | unsigned long old_len, | 175 | if (!IS_ERR((void *) addr)) |
176 | unsigned long new_len, | 176 | force_successful_syscall_return(); |
177 | unsigned long flags, | ||
178 | unsigned long new_addr); | ||
179 | |||
180 | down_write(¤t->mm->mmap_sem); | ||
181 | { | ||
182 | addr = do_mremap(addr, old_len, new_len, flags, new_addr); | ||
183 | } | ||
184 | up_write(¤t->mm->mmap_sem); | ||
185 | |||
186 | if (IS_ERR((void *) addr)) | ||
187 | return addr; | ||
188 | |||
189 | force_successful_syscall_return(); | ||
190 | return addr; | 177 | return addr; |
191 | } | 178 | } |
192 | 179 | ||
diff --git a/arch/m32r/include/asm/posix_types.h b/arch/m32r/include/asm/posix_types.h index 0195850e1f88..236de26a409b 100644 --- a/arch/m32r/include/asm/posix_types.h +++ b/arch/m32r/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/m68k/include/asm/posix_types.h b/arch/m68k/include/asm/posix_types.h index 6373093be72b..cf4dbf70fdc7 100644 --- a/arch/m68k/include/asm/posix_types.h +++ b/arch/m68k/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/mips/include/asm/posix_types.h b/arch/mips/include/asm/posix_types.h index e0308dcca135..fa03ec3fbf89 100644 --- a/arch/mips/include/asm/posix_types.h +++ b/arch/mips/include/asm/posix_types.h | |||
@@ -17,11 +17,6 @@ | |||
17 | * assume GCC is being used. | 17 | * assume GCC is being used. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #if (_MIPS_SZLONG == 64) | ||
21 | typedef unsigned int __kernel_nlink_t; | ||
22 | #define __kernel_nlink_t __kernel_nlink_t | ||
23 | #endif | ||
24 | |||
25 | typedef long __kernel_daddr_t; | 20 | typedef long __kernel_daddr_t; |
26 | #define __kernel_daddr_t __kernel_daddr_t | 21 | #define __kernel_daddr_t __kernel_daddr_t |
27 | 22 | ||
diff --git a/arch/mips/include/asm/stat.h b/arch/mips/include/asm/stat.h index 6e00f751ab6d..fe9a4c3ec5a1 100644 --- a/arch/mips/include/asm/stat.h +++ b/arch/mips/include/asm/stat.h | |||
@@ -20,7 +20,7 @@ struct stat { | |||
20 | long st_pad1[3]; /* Reserved for network id */ | 20 | long st_pad1[3]; /* Reserved for network id */ |
21 | ino_t st_ino; | 21 | ino_t st_ino; |
22 | mode_t st_mode; | 22 | mode_t st_mode; |
23 | nlink_t st_nlink; | 23 | __u32 st_nlink; |
24 | uid_t st_uid; | 24 | uid_t st_uid; |
25 | gid_t st_gid; | 25 | gid_t st_gid; |
26 | unsigned st_rdev; | 26 | unsigned st_rdev; |
@@ -55,7 +55,7 @@ struct stat64 { | |||
55 | unsigned long long st_ino; | 55 | unsigned long long st_ino; |
56 | 56 | ||
57 | mode_t st_mode; | 57 | mode_t st_mode; |
58 | nlink_t st_nlink; | 58 | __u32 st_nlink; |
59 | 59 | ||
60 | uid_t st_uid; | 60 | uid_t st_uid; |
61 | gid_t st_gid; | 61 | gid_t st_gid; |
@@ -96,7 +96,7 @@ struct stat { | |||
96 | unsigned long st_ino; | 96 | unsigned long st_ino; |
97 | 97 | ||
98 | mode_t st_mode; | 98 | mode_t st_mode; |
99 | nlink_t st_nlink; | 99 | __u32 st_nlink; |
100 | 100 | ||
101 | uid_t st_uid; | 101 | uid_t st_uid; |
102 | gid_t st_gid; | 102 | gid_t st_gid; |
diff --git a/arch/mn10300/include/asm/posix_types.h b/arch/mn10300/include/asm/posix_types.h index ab506181ec31..d31eeea480cf 100644 --- a/arch/mn10300/include/asm/posix_types.h +++ b/arch/mn10300/include/asm/posix_types.h | |||
@@ -20,9 +20,6 @@ | |||
20 | typedef unsigned short __kernel_mode_t; | 20 | typedef unsigned short __kernel_mode_t; |
21 | #define __kernel_mode_t __kernel_mode_t | 21 | #define __kernel_mode_t __kernel_mode_t |
22 | 22 | ||
23 | typedef unsigned short __kernel_nlink_t; | ||
24 | #define __kernel_nlink_t __kernel_nlink_t | ||
25 | |||
26 | typedef unsigned short __kernel_ipc_pid_t; | 23 | typedef unsigned short __kernel_ipc_pid_t; |
27 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 24 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
28 | 25 | ||
diff --git a/arch/parisc/include/asm/posix_types.h b/arch/parisc/include/asm/posix_types.h index 5212b0357daf..b9344256f76b 100644 --- a/arch/parisc/include/asm/posix_types.h +++ b/arch/parisc/include/asm/posix_types.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||
diff --git a/arch/parisc/include/asm/stat.h b/arch/parisc/include/asm/stat.h index 9d5fbbc5c31f..d76fbda5d62c 100644 --- a/arch/parisc/include/asm/stat.h +++ b/arch/parisc/include/asm/stat.h | |||
@@ -7,7 +7,7 @@ struct stat { | |||
7 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ | 7 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ |
8 | ino_t st_ino; /* 32 bits */ | 8 | ino_t st_ino; /* 32 bits */ |
9 | mode_t st_mode; /* 16 bits */ | 9 | mode_t st_mode; /* 16 bits */ |
10 | nlink_t st_nlink; /* 16 bits */ | 10 | unsigned short st_nlink; /* 16 bits */ |
11 | unsigned short st_reserved1; /* old st_uid */ | 11 | unsigned short st_reserved1; /* old st_uid */ |
12 | unsigned short st_reserved2; /* old st_gid */ | 12 | unsigned short st_reserved2; /* old st_gid */ |
13 | unsigned int st_rdev; | 13 | unsigned int st_rdev; |
@@ -42,7 +42,7 @@ struct hpux_stat64 { | |||
42 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ | 42 | unsigned int st_dev; /* dev_t is 32 bits on parisc */ |
43 | ino_t st_ino; /* 32 bits */ | 43 | ino_t st_ino; /* 32 bits */ |
44 | mode_t st_mode; /* 16 bits */ | 44 | mode_t st_mode; /* 16 bits */ |
45 | nlink_t st_nlink; /* 16 bits */ | 45 | unsigned short st_nlink; /* 16 bits */ |
46 | unsigned short st_reserved1; /* old st_uid */ | 46 | unsigned short st_reserved1; /* old st_uid */ |
47 | unsigned short st_reserved2; /* old st_gid */ | 47 | unsigned short st_reserved2; /* old st_gid */ |
48 | unsigned int st_rdev; | 48 | unsigned int st_rdev; |
diff --git a/arch/powerpc/include/asm/posix_types.h b/arch/powerpc/include/asm/posix_types.h index f1393252bbda..2958c5b97b2d 100644 --- a/arch/powerpc/include/asm/posix_types.h +++ b/arch/powerpc/include/asm/posix_types.h | |||
@@ -16,9 +16,6 @@ typedef int __kernel_ssize_t; | |||
16 | typedef long __kernel_ptrdiff_t; | 16 | typedef long __kernel_ptrdiff_t; |
17 | #define __kernel_size_t __kernel_size_t | 17 | #define __kernel_size_t __kernel_size_t |
18 | 18 | ||
19 | typedef unsigned short __kernel_nlink_t; | ||
20 | #define __kernel_nlink_t __kernel_nlink_t | ||
21 | |||
22 | typedef short __kernel_ipc_pid_t; | 19 | typedef short __kernel_ipc_pid_t; |
23 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 20 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
24 | #endif | 21 | #endif |
diff --git a/arch/powerpc/include/asm/stat.h b/arch/powerpc/include/asm/stat.h index e4edc510b530..10cfb558e0fd 100644 --- a/arch/powerpc/include/asm/stat.h +++ b/arch/powerpc/include/asm/stat.h | |||
@@ -30,11 +30,11 @@ struct stat { | |||
30 | unsigned long st_dev; | 30 | unsigned long st_dev; |
31 | ino_t st_ino; | 31 | ino_t st_ino; |
32 | #ifdef __powerpc64__ | 32 | #ifdef __powerpc64__ |
33 | nlink_t st_nlink; | 33 | unsigned short st_nlink; |
34 | mode_t st_mode; | 34 | mode_t st_mode; |
35 | #else | 35 | #else |
36 | mode_t st_mode; | 36 | mode_t st_mode; |
37 | nlink_t st_nlink; | 37 | unsigned short st_nlink; |
38 | #endif | 38 | #endif |
39 | uid_t st_uid; | 39 | uid_t st_uid; |
40 | gid_t st_gid; | 40 | gid_t st_gid; |
diff --git a/arch/s390/include/asm/posix_types.h b/arch/s390/include/asm/posix_types.h index edf8527ff08d..7be104c0f192 100644 --- a/arch/s390/include/asm/posix_types.h +++ b/arch/s390/include/asm/posix_types.h | |||
@@ -24,7 +24,6 @@ typedef unsigned short __kernel_old_dev_t; | |||
24 | 24 | ||
25 | typedef unsigned long __kernel_ino_t; | 25 | typedef unsigned long __kernel_ino_t; |
26 | typedef unsigned short __kernel_mode_t; | 26 | typedef unsigned short __kernel_mode_t; |
27 | typedef unsigned short __kernel_nlink_t; | ||
28 | typedef unsigned short __kernel_ipc_pid_t; | 27 | typedef unsigned short __kernel_ipc_pid_t; |
29 | typedef unsigned short __kernel_uid_t; | 28 | typedef unsigned short __kernel_uid_t; |
30 | typedef unsigned short __kernel_gid_t; | 29 | typedef unsigned short __kernel_gid_t; |
@@ -35,7 +34,6 @@ typedef int __kernel_ptrdiff_t; | |||
35 | 34 | ||
36 | typedef unsigned int __kernel_ino_t; | 35 | typedef unsigned int __kernel_ino_t; |
37 | typedef unsigned int __kernel_mode_t; | 36 | typedef unsigned int __kernel_mode_t; |
38 | typedef unsigned int __kernel_nlink_t; | ||
39 | typedef int __kernel_ipc_pid_t; | 37 | typedef int __kernel_ipc_pid_t; |
40 | typedef unsigned int __kernel_uid_t; | 38 | typedef unsigned int __kernel_uid_t; |
41 | typedef unsigned int __kernel_gid_t; | 39 | typedef unsigned int __kernel_gid_t; |
@@ -47,7 +45,6 @@ typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ | |||
47 | 45 | ||
48 | #define __kernel_ino_t __kernel_ino_t | 46 | #define __kernel_ino_t __kernel_ino_t |
49 | #define __kernel_mode_t __kernel_mode_t | 47 | #define __kernel_mode_t __kernel_mode_t |
50 | #define __kernel_nlink_t __kernel_nlink_t | ||
51 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 48 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
52 | #define __kernel_uid_t __kernel_uid_t | 49 | #define __kernel_uid_t __kernel_uid_t |
53 | #define __kernel_gid_t __kernel_gid_t | 50 | #define __kernel_gid_t __kernel_gid_t |
diff --git a/arch/sh/include/asm/posix_types_32.h b/arch/sh/include/asm/posix_types_32.h index abda58467ece..ba0bdc423b07 100644 --- a/arch/sh/include/asm/posix_types_32.h +++ b/arch/sh/include/asm/posix_types_32.h | |||
@@ -3,8 +3,6 @@ | |||
3 | 3 | ||
4 | typedef unsigned short __kernel_mode_t; | 4 | typedef unsigned short __kernel_mode_t; |
5 | #define __kernel_mode_t __kernel_mode_t | 5 | #define __kernel_mode_t __kernel_mode_t |
6 | typedef unsigned short __kernel_nlink_t; | ||
7 | #define __kernel_nlink_t __kernel_nlink_t | ||
8 | typedef unsigned short __kernel_ipc_pid_t; | 6 | typedef unsigned short __kernel_ipc_pid_t; |
9 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 7 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
10 | typedef unsigned short __kernel_uid_t; | 8 | typedef unsigned short __kernel_uid_t; |
diff --git a/arch/sh/include/asm/posix_types_64.h b/arch/sh/include/asm/posix_types_64.h index fcda07b4a616..244f7e950e17 100644 --- a/arch/sh/include/asm/posix_types_64.h +++ b/arch/sh/include/asm/posix_types_64.h | |||
@@ -3,8 +3,6 @@ | |||
3 | 3 | ||
4 | typedef unsigned short __kernel_mode_t; | 4 | typedef unsigned short __kernel_mode_t; |
5 | #define __kernel_mode_t __kernel_mode_t | 5 | #define __kernel_mode_t __kernel_mode_t |
6 | typedef unsigned short __kernel_nlink_t; | ||
7 | #define __kernel_nlink_t __kernel_nlink_t | ||
8 | typedef unsigned short __kernel_ipc_pid_t; | 6 | typedef unsigned short __kernel_ipc_pid_t; |
9 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 7 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
10 | typedef unsigned short __kernel_uid_t; | 8 | typedef unsigned short __kernel_uid_t; |
diff --git a/arch/sparc/include/asm/posix_types.h b/arch/sparc/include/asm/posix_types.h index 3070f25ae90a..156220ed99eb 100644 --- a/arch/sparc/include/asm/posix_types.h +++ b/arch/sparc/include/asm/posix_types.h | |||
@@ -9,8 +9,6 @@ | |||
9 | 9 | ||
10 | #if defined(__sparc__) && defined(__arch64__) | 10 | #if defined(__sparc__) && defined(__arch64__) |
11 | /* sparc 64 bit */ | 11 | /* sparc 64 bit */ |
12 | typedef unsigned int __kernel_nlink_t; | ||
13 | #define __kernel_nlink_t __kernel_nlink_t | ||
14 | 12 | ||
15 | typedef unsigned short __kernel_old_uid_t; | 13 | typedef unsigned short __kernel_old_uid_t; |
16 | typedef unsigned short __kernel_old_gid_t; | 14 | typedef unsigned short __kernel_old_gid_t; |
@@ -38,9 +36,6 @@ typedef unsigned short __kernel_gid_t; | |||
38 | typedef unsigned short __kernel_mode_t; | 36 | typedef unsigned short __kernel_mode_t; |
39 | #define __kernel_mode_t __kernel_mode_t | 37 | #define __kernel_mode_t __kernel_mode_t |
40 | 38 | ||
41 | typedef short __kernel_nlink_t; | ||
42 | #define __kernel_nlink_t __kernel_nlink_t | ||
43 | |||
44 | typedef long __kernel_daddr_t; | 39 | typedef long __kernel_daddr_t; |
45 | #define __kernel_daddr_t __kernel_daddr_t | 40 | #define __kernel_daddr_t __kernel_daddr_t |
46 | 41 | ||
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index 3ee51f189a55..275f74fd6f6a 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c | |||
@@ -580,16 +580,9 @@ SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len, | |||
580 | unsigned long, new_len, unsigned long, flags, | 580 | unsigned long, new_len, unsigned long, flags, |
581 | unsigned long, new_addr) | 581 | unsigned long, new_addr) |
582 | { | 582 | { |
583 | unsigned long ret = -EINVAL; | ||
584 | |||
585 | if (test_thread_flag(TIF_32BIT)) | 583 | if (test_thread_flag(TIF_32BIT)) |
586 | goto out; | 584 | return -EINVAL; |
587 | 585 | return sys_mremap(addr, old_len, new_len, flags, new_addr); | |
588 | down_write(¤t->mm->mmap_sem); | ||
589 | ret = do_mremap(addr, old_len, new_len, flags, new_addr); | ||
590 | up_write(¤t->mm->mmap_sem); | ||
591 | out: | ||
592 | return ret; | ||
593 | } | 586 | } |
594 | 587 | ||
595 | /* we come to here via sys_nis_syscall so it can setup the regs argument */ | 588 | /* we come to here via sys_nis_syscall so it can setup the regs argument */ |
diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index 69adc08d36a5..6e74450ff0a1 100644 --- a/arch/tile/include/asm/compat.h +++ b/arch/tile/include/asm/compat.h | |||
@@ -44,7 +44,6 @@ typedef __kernel_uid32_t __compat_gid32_t; | |||
44 | typedef __kernel_mode_t compat_mode_t; | 44 | typedef __kernel_mode_t compat_mode_t; |
45 | typedef __kernel_dev_t compat_dev_t; | 45 | typedef __kernel_dev_t compat_dev_t; |
46 | typedef __kernel_loff_t compat_loff_t; | 46 | typedef __kernel_loff_t compat_loff_t; |
47 | typedef __kernel_nlink_t compat_nlink_t; | ||
48 | typedef __kernel_ipc_pid_t compat_ipc_pid_t; | 47 | typedef __kernel_ipc_pid_t compat_ipc_pid_t; |
49 | typedef __kernel_daddr_t compat_daddr_t; | 48 | typedef __kernel_daddr_t compat_daddr_t; |
50 | typedef __kernel_fsid_t compat_fsid_t; | 49 | typedef __kernel_fsid_t compat_fsid_t; |
diff --git a/arch/x86/include/asm/posix_types_32.h b/arch/x86/include/asm/posix_types_32.h index 99f262e04b91..8e525059e7d8 100644 --- a/arch/x86/include/asm/posix_types_32.h +++ b/arch/x86/include/asm/posix_types_32.h | |||
@@ -10,9 +10,6 @@ | |||
10 | typedef unsigned short __kernel_mode_t; | 10 | typedef unsigned short __kernel_mode_t; |
11 | #define __kernel_mode_t __kernel_mode_t | 11 | #define __kernel_mode_t __kernel_mode_t |
12 | 12 | ||
13 | typedef unsigned short __kernel_nlink_t; | ||
14 | #define __kernel_nlink_t __kernel_nlink_t | ||
15 | |||
16 | typedef unsigned short __kernel_ipc_pid_t; | 13 | typedef unsigned short __kernel_ipc_pid_t; |
17 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t | 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t |
18 | 15 | ||