Skip to content

Commit 0583fcc

Browse files
author
Al Viro
committed
consolidate umode_t declarations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 1bc9422 commit 0583fcc

19 files changed

Lines changed: 1 addition & 102 deletions

File tree

‎arch/alpha/include/asm/types.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,4 @@
1515
#include <asm-generic/int-l64.h>
1616
#endif
1717

18-
#ifndef __ASSEMBLY__
19-
20-
typedef unsigned int umode_t;
21-
22-
#endif /* __ASSEMBLY__ */
2318
#endif /* _ALPHA_TYPES_H */

‎arch/arm/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
#include <asm-generic/int-ll64.h>
55

6-
#ifndef __ASSEMBLY__
7-
8-
typedef unsigned short umode_t;
9-
10-
#endif /* __ASSEMBLY__ */
11-
126
/*
137
* These aren't exported outside the kernel to avoid name space clashes
148
*/

‎arch/avr32/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010

1111
#include <asm-generic/int-ll64.h>
1212

13-
#ifndef __ASSEMBLY__
14-
15-
typedef unsigned short umode_t;
16-
17-
#endif /* __ASSEMBLY__ */
18-
1913
/*
2014
* These aren't exported outside the kernel to avoid name space clashes
2115
*/

‎arch/cris/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
#include <asm-generic/int-ll64.h>
55

6-
#ifndef __ASSEMBLY__
7-
8-
typedef unsigned short umode_t;
9-
10-
#endif /* __ASSEMBLY__ */
11-
126
/*
137
* These aren't exported outside the kernel to avoid name space clashes
148
*/

‎arch/frv/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515
#include <asm-generic/int-ll64.h>
1616

17-
#ifndef __ASSEMBLY__
18-
19-
typedef unsigned short umode_t;
20-
21-
#endif /* __ASSEMBLY__ */
22-
2317
/*
2418
* These aren't exported outside the kernel to avoid name space clashes
2519
*/

‎arch/h8300/include/asm/types.h‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,10 @@
33

44
#include <asm-generic/int-ll64.h>
55

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-
*/
216
#ifdef __KERNEL__
227

238
#define BITS_PER_LONG 32
249

2510
#endif /* __KERNEL__ */
2611

27-
#endif /* __ASSEMBLY__ */
28-
2912
#endif /* _H8300_TYPES_H */

‎arch/ia64/include/asm/types.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
# define __IA64_UL(x) ((unsigned long)(x))
2929
# define __IA64_UL_CONST(x) x##UL
3030

31-
typedef unsigned int umode_t;
32-
3331
/*
3432
* These aren't exported outside the kernel to avoid name space clashes
3533
*/

‎arch/m32r/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
#include <asm-generic/int-ll64.h>
55

6-
#ifndef __ASSEMBLY__
7-
8-
typedef unsigned short umode_t;
9-
10-
#endif /* __ASSEMBLY__ */
11-
126
/*
137
* These aren't exported outside the kernel to avoid name space clashes
148
*/

‎arch/m68k/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
*/
1111
#include <asm-generic/int-ll64.h>
1212

13-
#ifndef __ASSEMBLY__
14-
15-
typedef unsigned short umode_t;
16-
17-
#endif /* __ASSEMBLY__ */
18-
1913
/*
2014
* These aren't exported outside the kernel to avoid name space clashes
2115
*/

‎arch/mips/include/asm/types.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
# include <asm-generic/int-ll64.h>
2222
#endif
2323

24-
#ifndef __ASSEMBLY__
25-
26-
typedef unsigned short umode_t;
27-
28-
#endif /* __ASSEMBLY__ */
29-
3024
/*
3125
* These aren't exported outside the kernel to avoid name space clashes
3226
*/

0 commit comments

Comments
 (0)