diff options
-rw-r--r-- | arch/alpha/include/asm/types.h | 5 | ||||
-rw-r--r-- | arch/arm/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/avr32/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/cris/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/frv/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/h8300/include/asm/types.h | 17 | ||||
-rw-r--r-- | arch/ia64/include/asm/types.h | 2 | ||||
-rw-r--r-- | arch/m32r/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/m68k/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/mn10300/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/parisc/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/powerpc/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/s390/include/asm/types.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/posix_types.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/xtensa/include/asm/types.h | 2 | ||||
-rw-r--r-- | include/asm-generic/types.h | 6 | ||||
-rw-r--r-- | include/linux/types.h | 1 |
19 files changed, 1 insertions, 102 deletions
diff --git a/arch/alpha/include/asm/types.h b/arch/alpha/include/asm/types.h index 881544339c21..0a0579076f4a 100644 --- a/arch/alpha/include/asm/types.h +++ b/arch/alpha/include/asm/types.h | |||
@@ -15,9 +15,4 @@ | |||
15 | #include <asm-generic/int-l64.h> | 15 | #include <asm-generic/int-l64.h> |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #ifndef __ASSEMBLY__ | ||
19 | |||
20 | typedef unsigned int umode_t; | ||
21 | |||
22 | #endif /* __ASSEMBLY__ */ | ||
23 | #endif /* _ALPHA_TYPES_H */ | 18 | #endif /* _ALPHA_TYPES_H */ |
diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h index 48192ac3a23a..28beab917ffc 100644 --- a/arch/arm/include/asm/types.h +++ b/arch/arm/include/asm/types.h | |||
@@ -3,12 +3,6 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/int-ll64.h> | 4 | #include <asm-generic/int-ll64.h> |
5 | 5 | ||
6 | #ifndef __ASSEMBLY__ | ||
7 | |||
8 | typedef unsigned short umode_t; | ||
9 | |||
10 | #endif /* __ASSEMBLY__ */ | ||
11 | |||
12 | /* | 6 | /* |
13 | * These aren't exported outside the kernel to avoid name space clashes | 7 | * These aren't exported outside the kernel to avoid name space clashes |
14 | */ | 8 | */ |
diff --git a/arch/avr32/include/asm/types.h b/arch/avr32/include/asm/types.h index 72667a3b1af7..9bb2d8b2e6ca 100644 --- a/arch/avr32/include/asm/types.h +++ b/arch/avr32/include/asm/types.h | |||
@@ -10,12 +10,6 @@ | |||
10 | 10 | ||
11 | #include <asm-generic/int-ll64.h> | 11 | #include <asm-generic/int-ll64.h> |
12 | 12 | ||
13 | #ifndef __ASSEMBLY__ | ||
14 | |||
15 | typedef unsigned short umode_t; | ||
16 | |||
17 | #endif /* __ASSEMBLY__ */ | ||
18 | |||
19 | /* | 13 | /* |
20 | * These aren't exported outside the kernel to avoid name space clashes | 14 | * These aren't exported outside the kernel to avoid name space clashes |
21 | */ | 15 | */ |
diff --git a/arch/cris/include/asm/types.h b/arch/cris/include/asm/types.h index 551a12c0aa01..adaf82780bb4 100644 --- a/arch/cris/include/asm/types.h +++ b/arch/cris/include/asm/types.h | |||
@@ -3,12 +3,6 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/int-ll64.h> | 4 | #include <asm-generic/int-ll64.h> |
5 | 5 | ||
6 | #ifndef __ASSEMBLY__ | ||
7 | |||
8 | typedef unsigned short umode_t; | ||
9 | |||
10 | #endif /* __ASSEMBLY__ */ | ||
11 | |||
12 | /* | 6 | /* |
13 | * These aren't exported outside the kernel to avoid name space clashes | 7 | * These aren't exported outside the kernel to avoid name space clashes |
14 | */ | 8 | */ |
diff --git a/arch/frv/include/asm/types.h b/arch/frv/include/asm/types.h index aa3e7fdc7f29..390a612f3a58 100644 --- a/arch/frv/include/asm/types.h +++ b/arch/frv/include/asm/types.h | |||
@@ -14,12 +14,6 @@ | |||
14 | 14 | ||
15 | #include <asm-generic/int-ll64.h> | 15 | #include <asm-generic/int-ll64.h> |
16 | 16 | ||
17 | #ifndef __ASSEMBLY__ | ||
18 | |||
19 | typedef unsigned short umode_t; | ||
20 | |||
21 | #endif /* __ASSEMBLY__ */ | ||
22 | |||
23 | /* | 17 | /* |
24 | * These aren't exported outside the kernel to avoid name space clashes | 18 | * These aren't exported outside the kernel to avoid name space clashes |
25 | */ | 19 | */ |
diff --git a/arch/h8300/include/asm/types.h b/arch/h8300/include/asm/types.h index bb2c91a3522e..07257d9487d8 100644 --- a/arch/h8300/include/asm/types.h +++ b/arch/h8300/include/asm/types.h | |||
@@ -3,27 +3,10 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/int-ll64.h> | 4 | #include <asm-generic/int-ll64.h> |
5 | 5 | ||
6 | #if !defined(__ASSEMBLY__) | ||
7 | |||
8 | /* | ||
9 | * This file is never included by application software unless | ||
10 | * explicitly requested (e.g., via linux/types.h) in which case the | ||
11 | * application is Linux specific so (user-) name space pollution is | ||
12 | * not a major issue. However, for interoperability, libraries still | ||
13 | * need to be careful to avoid a name clashes. | ||
14 | */ | ||
15 | |||
16 | typedef unsigned short umode_t; | ||
17 | |||
18 | /* | ||
19 | * These aren't exported outside the kernel to avoid name space clashes | ||
20 | */ | ||
21 | #ifdef __KERNEL__ | 6 | #ifdef __KERNEL__ |
22 | 7 | ||
23 | #define BITS_PER_LONG 32 | 8 | #define BITS_PER_LONG 32 |
24 | 9 | ||
25 | #endif /* __KERNEL__ */ | 10 | #endif /* __KERNEL__ */ |
26 | 11 | ||
27 | #endif /* __ASSEMBLY__ */ | ||
28 | |||
29 | #endif /* _H8300_TYPES_H */ | 12 | #endif /* _H8300_TYPES_H */ |
diff --git a/arch/ia64/include/asm/types.h b/arch/ia64/include/asm/types.h index 82b3939d2718..3f5b122d9975 100644 --- a/arch/ia64/include/asm/types.h +++ b/arch/ia64/include/asm/types.h | |||
@@ -28,8 +28,6 @@ | |||
28 | # define __IA64_UL(x) ((unsigned long)(x)) | 28 | # define __IA64_UL(x) ((unsigned long)(x)) |
29 | # define __IA64_UL_CONST(x) x##UL | 29 | # define __IA64_UL_CONST(x) x##UL |
30 | 30 | ||
31 | typedef unsigned int umode_t; | ||
32 | |||
33 | /* | 31 | /* |
34 | * These aren't exported outside the kernel to avoid name space clashes | 32 | * These aren't exported outside the kernel to avoid name space clashes |
35 | */ | 33 | */ |
diff --git a/arch/m32r/include/asm/types.h b/arch/m32r/include/asm/types.h index bd0035597b3b..bb2eeadecf99 100644 --- a/arch/m32r/include/asm/types.h +++ b/arch/m32r/include/asm/types.h | |||
@@ -3,12 +3,6 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/int-ll64.h> | 4 | #include <asm-generic/int-ll64.h> |
5 | 5 | ||
6 | #ifndef __ASSEMBLY__ | ||
7 | |||
8 | typedef unsigned short umode_t; | ||
9 | |||
10 | #endif /* __ASSEMBLY__ */ | ||
11 | |||
12 | /* | 6 | /* |
13 | * These aren't exported outside the kernel to avoid name space clashes | 7 | * These aren't exported outside the kernel to avoid name space clashes |
14 | */ | 8 | */ |
diff --git a/arch/m68k/include/asm/types.h b/arch/m68k/include/asm/types.h index b17fd115a4e7..89705adcbd52 100644 --- a/arch/m68k/include/asm/types.h +++ b/arch/m68k/include/asm/types.h | |||
@@ -10,12 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | #include <asm-generic/int-ll64.h> | 11 | #include <asm-generic/int-ll64.h> |
12 | 12 | ||
13 | #ifndef __ASSEMBLY__ | ||
14 | |||
15 | typedef unsigned short umode_t; | ||
16 | |||
17 | #endif /* __ASSEMBLY__ */ | ||
18 | |||
19 | /* | 13 | /* |
20 | * These aren't exported outside the kernel to avoid name space clashes | 14 | * These aren't exported outside the kernel to avoid name space clashes |
21 | */ | 15 | */ |
diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h index 533812b61881..43bf70ebd3a2 100644 --- a/arch/mips/include/asm/types.h +++ b/arch/mips/include/asm/types.h | |||
@@ -21,12 +21,6 @@ | |||
21 | # include <asm-generic/int-ll64.h> | 21 | # include <asm-generic/int-ll64.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #ifndef __ASSEMBLY__ | ||
25 | |||
26 | typedef unsigned short umode_t; | ||
27 | |||
28 | #endif /* __ASSEMBLY__ */ | ||
29 | |||
30 | /* | 24 | /* |
31 | * These aren't exported outside the kernel to avoid name space clashes | 25 | * These aren't exported outside the kernel to avoid name space clashes |
32 | */ | 26 | */ |
diff --git a/arch/mn10300/include/asm/types.h b/arch/mn10300/include/asm/types.h index c1833eb192e3..713d4ba108a5 100644 --- a/arch/mn10300/include/asm/types.h +++ b/arch/mn10300/include/asm/types.h | |||
@@ -13,12 +13,6 @@ | |||
13 | 13 | ||
14 | #include <asm-generic/int-ll64.h> | 14 | #include <asm-generic/int-ll64.h> |
15 | 15 | ||
16 | #ifndef __ASSEMBLY__ | ||
17 | |||
18 | typedef unsigned short umode_t; | ||
19 | |||
20 | #endif /* __ASSEMBLY__ */ | ||
21 | |||
22 | /* | 16 | /* |
23 | * These aren't exported outside the kernel to avoid name space clashes | 17 | * These aren't exported outside the kernel to avoid name space clashes |
24 | */ | 18 | */ |
diff --git a/arch/parisc/include/asm/types.h b/arch/parisc/include/asm/types.h index 80e415c9936d..8866f9bbdeaf 100644 --- a/arch/parisc/include/asm/types.h +++ b/arch/parisc/include/asm/types.h | |||
@@ -3,10 +3,4 @@ | |||
3 | 3 | ||
4 | #include <asm-generic/int-ll64.h> | 4 | #include <asm-generic/int-ll64.h> |
5 | 5 | ||
6 | #ifndef __ASSEMBLY__ | ||
7 | |||
8 | typedef unsigned short umode_t; | ||
9 | |||
10 | #endif /* __ASSEMBLY__ */ | ||
11 | |||
12 | #endif | 6 | #endif |
diff --git a/arch/powerpc/include/asm/types.h b/arch/powerpc/include/asm/types.h index 8947b9827bc4..b15a52e84b37 100644 --- a/arch/powerpc/include/asm/types.h +++ b/arch/powerpc/include/asm/types.h | |||
@@ -27,12 +27,6 @@ | |||
27 | * 2 of the License, or (at your option) any later version. | 27 | * 2 of the License, or (at your option) any later version. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifdef __powerpc64__ | ||
31 | typedef unsigned int umode_t; | ||
32 | #else | ||
33 | typedef unsigned short umode_t; | ||
34 | #endif | ||
35 | |||
36 | typedef struct { | 30 | typedef struct { |
37 | __u32 u[4]; | 31 | __u32 u[4]; |
38 | } __attribute__((aligned(16))) __vector128; | 32 | } __attribute__((aligned(16))) __vector128; |
diff --git a/arch/s390/include/asm/types.h b/arch/s390/include/asm/types.h index eeb52ccf499f..05ebbcdbbf6b 100644 --- a/arch/s390/include/asm/types.h +++ b/arch/s390/include/asm/types.h | |||
@@ -13,8 +13,6 @@ | |||
13 | 13 | ||
14 | #ifndef __ASSEMBLY__ | 14 | #ifndef __ASSEMBLY__ |
15 | 15 | ||
16 | typedef unsigned short umode_t; | ||
17 | |||
18 | /* A address type so that arithmetic can be done on it & it can be upgraded to | 16 | /* A address type so that arithmetic can be done on it & it can be upgraded to |
19 | 64 bit when necessary | 17 | 64 bit when necessary |
20 | */ | 18 | */ |
diff --git a/arch/sparc/include/asm/posix_types.h b/arch/sparc/include/asm/posix_types.h index 98d6ebb922fb..dbfc1a34b3a2 100644 --- a/arch/sparc/include/asm/posix_types.h +++ b/arch/sparc/include/asm/posix_types.h | |||
@@ -20,7 +20,6 @@ typedef unsigned int __kernel_uid_t; | |||
20 | typedef unsigned int __kernel_gid_t; | 20 | typedef unsigned int __kernel_gid_t; |
21 | typedef unsigned long __kernel_ino_t; | 21 | typedef unsigned long __kernel_ino_t; |
22 | typedef unsigned int __kernel_mode_t; | 22 | typedef unsigned int __kernel_mode_t; |
23 | typedef unsigned short __kernel_umode_t; | ||
24 | typedef unsigned int __kernel_nlink_t; | 23 | typedef unsigned int __kernel_nlink_t; |
25 | typedef int __kernel_daddr_t; | 24 | typedef int __kernel_daddr_t; |
26 | typedef long __kernel_off_t; | 25 | typedef long __kernel_off_t; |
@@ -55,7 +54,6 @@ typedef unsigned short __kernel_uid_t; | |||
55 | typedef unsigned short __kernel_gid_t; | 54 | typedef unsigned short __kernel_gid_t; |
56 | typedef unsigned long __kernel_ino_t; | 55 | typedef unsigned long __kernel_ino_t; |
57 | typedef unsigned short __kernel_mode_t; | 56 | typedef unsigned short __kernel_mode_t; |
58 | typedef unsigned short __kernel_umode_t; | ||
59 | typedef short __kernel_nlink_t; | 57 | typedef short __kernel_nlink_t; |
60 | typedef long __kernel_daddr_t; | 58 | typedef long __kernel_daddr_t; |
61 | typedef long __kernel_off_t; | 59 | typedef long __kernel_off_t; |
diff --git a/arch/sparc/include/asm/types.h b/arch/sparc/include/asm/types.h index 91e5a034f987..383d156cde9c 100644 --- a/arch/sparc/include/asm/types.h +++ b/arch/sparc/include/asm/types.h | |||
@@ -12,12 +12,6 @@ | |||
12 | 12 | ||
13 | #include <asm-generic/int-ll64.h> | 13 | #include <asm-generic/int-ll64.h> |
14 | 14 | ||
15 | #ifndef __ASSEMBLY__ | ||
16 | |||
17 | typedef unsigned short umode_t; | ||
18 | |||
19 | #endif /* __ASSEMBLY__ */ | ||
20 | |||
21 | #endif /* defined(__sparc__) */ | 15 | #endif /* defined(__sparc__) */ |
22 | 16 | ||
23 | #endif /* defined(_SPARC_TYPES_H) */ | 17 | #endif /* defined(_SPARC_TYPES_H) */ |
diff --git a/arch/xtensa/include/asm/types.h b/arch/xtensa/include/asm/types.h index b1c981e39b52..6d4db7e8ffac 100644 --- a/arch/xtensa/include/asm/types.h +++ b/arch/xtensa/include/asm/types.h | |||
@@ -23,8 +23,6 @@ | |||
23 | 23 | ||
24 | #ifndef __ASSEMBLY__ | 24 | #ifndef __ASSEMBLY__ |
25 | 25 | ||
26 | typedef unsigned short umode_t; | ||
27 | |||
28 | /* | 26 | /* |
29 | * These aren't exported outside the kernel to avoid name space clashes | 27 | * These aren't exported outside the kernel to avoid name space clashes |
30 | */ | 28 | */ |
diff --git a/include/asm-generic/types.h b/include/asm-generic/types.h index 7a0f69e6c618..bd39806013b5 100644 --- a/include/asm-generic/types.h +++ b/include/asm-generic/types.h | |||
@@ -6,10 +6,4 @@ | |||
6 | */ | 6 | */ |
7 | #include <asm-generic/int-ll64.h> | 7 | #include <asm-generic/int-ll64.h> |
8 | 8 | ||
9 | #ifndef __ASSEMBLY__ | ||
10 | |||
11 | typedef unsigned short umode_t; | ||
12 | |||
13 | #endif /* __ASSEMBLY__ */ | ||
14 | |||
15 | #endif /* _ASM_GENERIC_TYPES_H */ | 9 | #endif /* _ASM_GENERIC_TYPES_H */ |
diff --git a/include/linux/types.h b/include/linux/types.h index 57a97234bec1..f0ac9bda0f78 100644 --- a/include/linux/types.h +++ b/include/linux/types.h | |||
@@ -24,6 +24,7 @@ typedef __kernel_fd_set fd_set; | |||
24 | typedef __kernel_dev_t dev_t; | 24 | typedef __kernel_dev_t dev_t; |
25 | typedef __kernel_ino_t ino_t; | 25 | typedef __kernel_ino_t ino_t; |
26 | typedef __kernel_mode_t mode_t; | 26 | typedef __kernel_mode_t mode_t; |
27 | typedef unsigned short umode_t; | ||
27 | typedef __kernel_nlink_t nlink_t; | 28 | typedef __kernel_nlink_t nlink_t; |
28 | typedef __kernel_off_t off_t; | 29 | typedef __kernel_off_t off_t; |
29 | typedef __kernel_pid_t pid_t; | 30 | typedef __kernel_pid_t pid_t; |