summaryrefslogtreecommitdiff
path: root/include/linux/types.h
diff options
context:
space:
mode:
authorWolfgang Denk <[email protected]>2008-11-25 11:40:57 +0100
committerWolfgang Denk <[email protected]>2008-11-25 11:40:57 +0100
commitf9b354faa0417b7f8888de246ff5f267f7cb17f2 (patch)
treea156a4a36cd4bf7da3108839053af45e1a4da5b4 /include/linux/types.h
parentc49dc0b3b8f0fc9ed8e50d17d20e8e65d7abae57 (diff)
parent25ea652e907516a283b38237e83712a918f125d7 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-ubi
Diffstat (limited to 'include/linux/types.h')
-rw-r--r--include/linux/types.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index df4808fcdf4..1b0b4a44c45 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -119,6 +119,30 @@ typedef __s64 int64_t;
* Below are truly Linux-specific types that should never collide with
* any application/library that wants linux/types.h.
*/
+#ifdef __CHECKER__
+#define __bitwise__ __attribute__((bitwise))
+#else
+#define __bitwise__
+#endif
+#ifdef __CHECK_ENDIAN__
+#define __bitwise __bitwise__
+#else
+#define __bitwise
+#endif
+
+typedef __u16 __bitwise __le16;
+typedef __u16 __bitwise __be16;
+typedef __u32 __bitwise __le32;
+typedef __u32 __bitwise __be32;
+#if defined(__GNUC__)
+typedef __u64 __bitwise __le64;
+typedef __u64 __bitwise __be64;
+#endif
+typedef __u16 __bitwise __sum16;
+typedef __u32 __bitwise __wsum;
+
+
+typedef unsigned __bitwise__ gfp_t;
struct ustat {
__kernel_daddr_t f_tfree;