aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-02-25 18:51:45 -0500
committerIngo Molnar <mingo@elte.hu>2009-03-26 13:14:21 -0400
commit3a471cbc081b6bf2b58a48db13d734ecd3b0d437 (patch)
treee61d9d7023ddb8aa27aaf3d51df6bd45bdb71a5e
parent60c195c729532815c5209c81442fa0eb26ace706 (diff)
remove __KERNEL_STRICT_NAMES
With the last used of non-strict names gone from the exported header files, we can remove the old libc5 compatibility cruft from our headers and only export strict types. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/asm-generic/statfs.h5
-rw-r--r--include/linux/types.h13
2 files changed, 5 insertions, 13 deletions
diff --git a/include/asm-generic/statfs.h b/include/asm-generic/statfs.h
index 6129d6802149..3b4fb3e52f0d 100644
--- a/include/asm-generic/statfs.h
+++ b/include/asm-generic/statfs.h
@@ -1,8 +1,9 @@
1#ifndef _GENERIC_STATFS_H 1#ifndef _GENERIC_STATFS_H
2#define _GENERIC_STATFS_H 2#define _GENERIC_STATFS_H
3 3
4#ifndef __KERNEL_STRICT_NAMES 4#include <linux/types.h>
5# include <linux/types.h> 5
6#ifdef __KERNEL__
6typedef __kernel_fsid_t fsid_t; 7typedef __kernel_fsid_t fsid_t;
7#endif 8#endif
8 9
diff --git a/include/linux/types.h b/include/linux/types.h
index fca82ed55f49..5abe354020f9 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -13,7 +13,7 @@
13 13
14#include <linux/posix_types.h> 14#include <linux/posix_types.h>
15 15
16#ifndef __KERNEL_STRICT_NAMES 16#ifdef __KERNEL__
17 17
18typedef __u32 __kernel_dev_t; 18typedef __u32 __kernel_dev_t;
19 19
@@ -31,7 +31,6 @@ typedef __kernel_timer_t timer_t;
31typedef __kernel_clockid_t clockid_t; 31typedef __kernel_clockid_t clockid_t;
32typedef __kernel_mqd_t mqd_t; 32typedef __kernel_mqd_t mqd_t;
33 33
34#ifdef __KERNEL__
35typedef _Bool bool; 34typedef _Bool bool;
36 35
37typedef __kernel_uid32_t uid_t; 36typedef __kernel_uid32_t uid_t;
@@ -47,14 +46,6 @@ typedef __kernel_old_uid_t old_uid_t;
47typedef __kernel_old_gid_t old_gid_t; 46typedef __kernel_old_gid_t old_gid_t;
48#endif /* CONFIG_UID16 */ 47#endif /* CONFIG_UID16 */
49 48
50/* libc5 includes this file to define uid_t, thus uid_t can never change
51 * when it is included by non-kernel code
52 */
53#else
54typedef __kernel_uid_t uid_t;
55typedef __kernel_gid_t gid_t;
56#endif /* __KERNEL__ */
57
58#if defined(__GNUC__) 49#if defined(__GNUC__)
59typedef __kernel_loff_t loff_t; 50typedef __kernel_loff_t loff_t;
60#endif 51#endif
@@ -156,7 +147,7 @@ typedef unsigned long blkcnt_t;
156#define pgoff_t unsigned long 147#define pgoff_t unsigned long
157#endif 148#endif
158 149
159#endif /* __KERNEL_STRICT_NAMES */ 150#endif /* __KERNEL__ */
160 151
161/* 152/*
162 * Below are truly Linux-specific types that should never collide with 153 * Below are truly Linux-specific types that should never collide with