Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

consolidate umode_t declarations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 0583fcc9 1bc94226

+1 -102
-5
arch/alpha/include/asm/types.h
··· 15 15 #include <asm-generic/int-l64.h> 16 16 #endif 17 17 18 - #ifndef __ASSEMBLY__ 19 - 20 - typedef unsigned int umode_t; 21 - 22 - #endif /* __ASSEMBLY__ */ 23 18 #endif /* _ALPHA_TYPES_H */
-6
arch/arm/include/asm/types.h
··· 3 3 4 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 7 * These aren't exported outside the kernel to avoid name space clashes 14 8 */
-6
arch/avr32/include/asm/types.h
··· 10 10 11 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 14 * These aren't exported outside the kernel to avoid name space clashes 21 15 */
-6
arch/cris/include/asm/types.h
··· 3 3 4 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 7 * These aren't exported outside the kernel to avoid name space clashes 14 8 */
-6
arch/frv/include/asm/types.h
··· 14 14 15 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 18 * These aren't exported outside the kernel to avoid name space clashes 25 19 */
-17
arch/h8300/include/asm/types.h
··· 3 3 4 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 6 #ifdef __KERNEL__ 22 7 23 8 #define BITS_PER_LONG 32 24 9 25 10 #endif /* __KERNEL__ */ 26 - 27 - #endif /* __ASSEMBLY__ */ 28 11 29 12 #endif /* _H8300_TYPES_H */
-2
arch/ia64/include/asm/types.h
··· 28 28 # define __IA64_UL(x) ((unsigned long)(x)) 29 29 # define __IA64_UL_CONST(x) x##UL 30 30 31 - typedef unsigned int umode_t; 32 - 33 31 /* 34 32 * These aren't exported outside the kernel to avoid name space clashes 35 33 */
-6
arch/m32r/include/asm/types.h
··· 3 3 4 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 7 * These aren't exported outside the kernel to avoid name space clashes 14 8 */
-6
arch/m68k/include/asm/types.h
··· 10 10 */ 11 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 14 * These aren't exported outside the kernel to avoid name space clashes 21 15 */
-6
arch/mips/include/asm/types.h
··· 21 21 # include <asm-generic/int-ll64.h> 22 22 #endif 23 23 24 - #ifndef __ASSEMBLY__ 25 - 26 - typedef unsigned short umode_t; 27 - 28 - #endif /* __ASSEMBLY__ */ 29 - 30 24 /* 31 25 * These aren't exported outside the kernel to avoid name space clashes 32 26 */
-6
arch/mn10300/include/asm/types.h
··· 13 13 14 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 17 * These aren't exported outside the kernel to avoid name space clashes 24 18 */
-6
arch/parisc/include/asm/types.h
··· 3 3 4 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 #endif
-6
arch/powerpc/include/asm/types.h
··· 27 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 30 typedef struct { 37 31 __u32 u[4]; 38 32 } __attribute__((aligned(16))) __vector128;
-2
arch/s390/include/asm/types.h
··· 13 13 14 14 #ifndef __ASSEMBLY__ 15 15 16 - typedef unsigned short umode_t; 17 - 18 16 /* A address type so that arithmetic can be done on it & it can be upgraded to 19 17 64 bit when necessary 20 18 */
-2
arch/sparc/include/asm/posix_types.h
··· 20 20 typedef unsigned int __kernel_gid_t; 21 21 typedef unsigned long __kernel_ino_t; 22 22 typedef unsigned int __kernel_mode_t; 23 - typedef unsigned short __kernel_umode_t; 24 23 typedef unsigned int __kernel_nlink_t; 25 24 typedef int __kernel_daddr_t; 26 25 typedef long __kernel_off_t; ··· 54 55 typedef unsigned short __kernel_gid_t; 55 56 typedef unsigned long __kernel_ino_t; 56 57 typedef unsigned short __kernel_mode_t; 57 - typedef unsigned short __kernel_umode_t; 58 58 typedef short __kernel_nlink_t; 59 59 typedef long __kernel_daddr_t; 60 60 typedef long __kernel_off_t;
-6
arch/sparc/include/asm/types.h
··· 12 12 13 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 15 #endif /* defined(__sparc__) */ 22 16 23 17 #endif /* defined(_SPARC_TYPES_H) */
-2
arch/xtensa/include/asm/types.h
··· 23 23 24 24 #ifndef __ASSEMBLY__ 25 25 26 - typedef unsigned short umode_t; 27 - 28 26 /* 29 27 * These aren't exported outside the kernel to avoid name space clashes 30 28 */
-6
include/asm-generic/types.h
··· 6 6 */ 7 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 9 #endif /* _ASM_GENERIC_TYPES_H */
+1
include/linux/types.h
··· 24 24 typedef __kernel_dev_t dev_t; 25 25 typedef __kernel_ino_t ino_t; 26 26 typedef __kernel_mode_t mode_t; 27 + typedef unsigned short umode_t; 27 28 typedef __kernel_nlink_t nlink_t; 28 29 typedef __kernel_off_t off_t; 29 30 typedef __kernel_pid_t pid_t;