diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-02-26 00:53:43 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-04-06 11:12:54 +0200 |
commit | f090bca2d80a1f64fcfe07bb6f4efe7d1a00d741 (patch) | |
tree | 15e55de4c6ace5023eebe90cb47147ba8557b842 /include/linux | |
parent | 2672196646d61ef0f24c5d0caa4ca9f151c0665a (diff) | |
download | barebox-f090bca2d80a1f64fcfe07bb6f4efe7d1a00d741.tar.gz barebox-f090bca2d80a1f64fcfe07bb6f4efe7d1a00d741.tar.xz |
add __[lb]e types
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/types.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 9346a7d608..8646e0318a 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -116,6 +116,28 @@ typedef __s64 int64_t; * 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; + struct ustat { __kernel_daddr_t f_tfree; __kernel_ino_t f_tinode; |