consolidate umode_t declarations
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 21:04:15 +0000 (17:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:17 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
19 files changed:
arch/alpha/include/asm/types.h
arch/arm/include/asm/types.h
arch/avr32/include/asm/types.h
arch/cris/include/asm/types.h
arch/frv/include/asm/types.h
arch/h8300/include/asm/types.h
arch/ia64/include/asm/types.h
arch/m32r/include/asm/types.h
arch/m68k/include/asm/types.h
arch/mips/include/asm/types.h
arch/mn10300/include/asm/types.h
arch/parisc/include/asm/types.h
arch/powerpc/include/asm/types.h
arch/s390/include/asm/types.h
arch/sparc/include/asm/posix_types.h
arch/sparc/include/asm/types.h
arch/xtensa/include/asm/types.h
include/asm-generic/types.h
include/linux/types.h

index 881544339c218aed68c00f031ba06669c0a1d2fa..0a0579076f4aafc9b03402ccd45b73c27de7454a 100644 (file)
@@ -15,9 +15,4 @@
 #include <asm-generic/int-l64.h>
 #endif
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned int umode_t;
-
-#endif /* __ASSEMBLY__ */
 #endif /* _ALPHA_TYPES_H */
index 48192ac3a23a18fdb1629352f00a062837001ccc..28beab917ffc7741f967c53a1803d662fa648cac 100644 (file)
@@ -3,12 +3,6 @@
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index 72667a3b1af77822f9a6ea3081adeec188f66f22..9bb2d8b2e6cabbc9d871f4784635f2ee3941d542 100644 (file)
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index 551a12c0aa010a5b9507f0c92d5c8979e597a4c9..adaf82780bb4df9d97ec990087c47522faefccaa 100644 (file)
@@ -3,12 +3,6 @@
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index aa3e7fdc7f29ecea5b1ff5e569100e463c9e4c82..390a612f3a58e1c611c64ac0212f8670115e82e3 100644 (file)
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index bb2c91a3522e71c185ab6bfb58ff915b5d1ac9f3..07257d9487d8613910e0229c78ffafe74ce01c8a 100644 (file)
@@ -3,27 +3,10 @@
 
 #include <asm-generic/int-ll64.h>
 
-#if !defined(__ASSEMBLY__)
-
-/*
- * This file is never included by application software unless
- * explicitly requested (e.g., via linux/types.h) in which case the
- * application is Linux specific so (user-) name space pollution is
- * not a major issue.  However, for interoperability, libraries still
- * need to be careful to avoid a name clashes.
- */
-
-typedef unsigned short umode_t;
-
-/*
- * These aren't exported outside the kernel to avoid name space clashes
- */
 #ifdef __KERNEL__
 
 #define BITS_PER_LONG 32
 
 #endif /* __KERNEL__ */
 
-#endif /* __ASSEMBLY__ */
-
 #endif /* _H8300_TYPES_H */
index 82b3939d2718fe80698b8ce04924fdafc7cf42d6..3f5b122d9975161ea01ab1b8fa3833ac98944bd2 100644 (file)
@@ -28,8 +28,6 @@
 # define __IA64_UL(x)          ((unsigned long)(x))
 # define __IA64_UL_CONST(x)    x##UL
 
-typedef unsigned int umode_t;
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index bd0035597b3bcf65ce82150cfaffc50f97a97348..bb2eeadecf9983b2db27676f41050c9fcc321a3c 100644 (file)
@@ -3,12 +3,6 @@
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index b17fd115a4e7e716888f04e61f908965feeec858..89705adcbd522b8e0429554822cf6315f0c9a4e8 100644 (file)
  */
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index 533812b6188181ecea4503450e8eae5677ae920d..43bf70ebd3a2a8a79d7dff586c5810b5bcd55fb0 100644 (file)
 # include <asm-generic/int-ll64.h>
 #endif
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index c1833eb192e3f2fb2e83c91c0e71b52b108ed0df..713d4ba108a5b85c828c447892bc4313c470d137 100644 (file)
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index 80e415c9936d05312bfb96c4980254540b5f6bd5..8866f9bbdeafd226b92067b1e16842d705ebe37c 100644 (file)
@@ -3,10 +3,4 @@
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 #endif
index 8947b9827bc40d8d03fba298554d0c0f449aa31c..b15a52e84b37fef6d85267c1046a32ca8469dbf9 100644 (file)
  * 2 of the License, or (at your option) any later version.
  */
 
-#ifdef __powerpc64__
-typedef unsigned int umode_t;
-#else
-typedef unsigned short umode_t;
-#endif
-
 typedef struct {
        __u32 u[4];
 } __attribute__((aligned(16))) __vector128;
index eeb52ccf499f5cc46c02baf926aa5804bfad24eb..05ebbcdbbf6ba7d34791545f3f37355fcb10ef00 100644 (file)
@@ -13,8 +13,6 @@
 
 #ifndef __ASSEMBLY__
 
-typedef unsigned short umode_t;
-
 /* A address type so that arithmetic can be done on it & it can be upgraded to
    64 bit when necessary 
 */
index 98d6ebb922fbd810d2b4d3571a387b3e66861a84..dbfc1a34b3a23c6a4d17b39c46a6858d0eed8c78 100644 (file)
@@ -20,7 +20,6 @@ typedef unsigned int           __kernel_uid_t;
 typedef unsigned int           __kernel_gid_t;
 typedef unsigned long          __kernel_ino_t;
 typedef unsigned int           __kernel_mode_t;
-typedef unsigned short         __kernel_umode_t;
 typedef unsigned int           __kernel_nlink_t;
 typedef int                    __kernel_daddr_t;
 typedef long                   __kernel_off_t;
@@ -55,7 +54,6 @@ typedef unsigned short         __kernel_uid_t;
 typedef unsigned short         __kernel_gid_t;
 typedef unsigned long          __kernel_ino_t;
 typedef unsigned short         __kernel_mode_t;
-typedef unsigned short         __kernel_umode_t;
 typedef short                  __kernel_nlink_t;
 typedef long                   __kernel_daddr_t;
 typedef long                   __kernel_off_t;
index 91e5a034f987eea0f7c677ee13b9a1a57ff3fcb0..383d156cde9cfdc6751c3f52d2ed2faa7b59b082 100644 (file)
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 #endif /* defined(__sparc__) */
 
 #endif /* defined(_SPARC_TYPES_H) */
index b1c981e39b52b1544a1dac3b0e4cc22f2510c36e..6d4db7e8ffac608520d9985a3680fddcfcfc9a1b 100644 (file)
@@ -23,8 +23,6 @@
 
 #ifndef __ASSEMBLY__
 
-typedef unsigned short umode_t;
-
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
index 7a0f69e6c618d6f52c6b6a57ad0318532259590c..bd39806013b54e216acc0ef4f3605c674e409303 100644 (file)
@@ -6,10 +6,4 @@
  */
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
-
-typedef unsigned short umode_t;
-
-#endif /* __ASSEMBLY__ */
-
 #endif /* _ASM_GENERIC_TYPES_H */
index 57a97234bec13d37ce2809cde476152abe907d2e..f0ac9bda0f78fd8b88fe6ecdbcc403f2f73f2394 100644 (file)
@@ -24,6 +24,7 @@ typedef __kernel_fd_set               fd_set;
 typedef __kernel_dev_t         dev_t;
 typedef __kernel_ino_t         ino_t;
 typedef __kernel_mode_t                mode_t;
+typedef unsigned short         umode_t;
 typedef __kernel_nlink_t       nlink_t;
 typedef __kernel_off_t         off_t;
 typedef __kernel_pid_t         pid_t;