Add more linux types
PATCH 1/1 Add more linux types
It's preparation for UBI codes
Signed-off-by Kyungmin Park <[email protected]>
---
include/linux/types.h +24 -0
@@ -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;
PATCH 1/1 Add more linux types
Dear Kyungmin Park,
Quoted 26 lines · In message <20080829000751.GA5513@july> you wrote:
It's preparation for UBI codes
Signed-off-by Kyungmin Park <[email protected]>---
include/linux/types.h +14
-0@@ -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 ;
include/linux/types.h typedef __s64 int64_t; · line 145
Quoted 10 lines
include/linux/types.h +10
-0+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 ;
Please let's add such stuff as part of a patch series that also adds actual users for these new definitions.
Rejected for now.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Why can you only have two doors on a chicken coop? If it had four it would be a chicken sedan.