This makes the header files for byteorder includeable on 32 bit systems with gcc -ansi, where no 64 bit integers are available. Signed-off-by: Arnd Bergmann Index: linux-cg/include/linux/byteorder/big_endian.h =================================================================== --- linux-cg.orig/include/linux/byteorder/big_endian.h 2006-09-18 02:20:36.000000000 +0200 +++ linux-cg/include/linux/byteorder/big_endian.h 2006-09-18 02:20:51.000000000 +0200 @@ -40,6 +40,7 @@ #define __cpu_to_be16(x) ((__force __be16)(__u16)(x)) #define __be16_to_cpu(x) ((__force __u16)(__be16)(x)) +#ifdef __BYTEORDER_HAS_U64__ static inline __le64 __cpu_to_le64p(const __u64 *p) { return (__force __le64)__swab64p(p); @@ -48,6 +49,7 @@ { return __swab64p((__u64 *)p); } +#endif static inline __le32 __cpu_to_le32p(const __u32 *p) { return (__force __le32)__swab32p(p); Index: linux-cg/include/linux/byteorder/little_endian.h =================================================================== --- linux-cg.orig/include/linux/byteorder/little_endian.h 2006-09-18 02:20:36.000000000 +0200 +++ linux-cg/include/linux/byteorder/little_endian.h 2006-09-18 02:20:51.000000000 +0200 @@ -40,6 +40,7 @@ #define __cpu_to_be16(x) ((__force __be16)__swab16((x))) #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) +#ifdef __BYTEORDER_HAS_U64__ static inline __le64 __cpu_to_le64p(const __u64 *p) { return (__force __le64)*p; @@ -48,6 +49,7 @@ { return (__force __u64)*p; } +#endif static inline __le32 __cpu_to_le32p(const __u32 *p) { return (__force __le32)*p; @@ -64,6 +66,7 @@ { return (__force __u16)*p; } +#ifdef __BYTEORDER_HAS_U64__ static inline __be64 __cpu_to_be64p(const __u64 *p) { return (__force __be64)__swab64p(p); @@ -72,6 +75,7 @@ { return __swab64p((__u64 *)p); } +#endif static inline __be32 __cpu_to_be32p(const __u32 *p) { return (__force __be32)__swab32p(p); Index: linux-cg/include/linux/byteorder/pdp_endian.h =================================================================== --- linux-cg.orig/include/linux/byteorder/pdp_endian.h 2006-09-18 02:20:36.000000000 +0200 +++ linux-cg/include/linux/byteorder/pdp_endian.h 2006-09-18 02:20:51.000000000 +0200 @@ -27,6 +27,7 @@ #define __PDP_ENDIAN_BITFIELD #endif +#include #include #include Index: linux-cg/include/linux/byteorder/swab.h =================================================================== --- linux-cg.orig/include/linux/byteorder/swab.h 2006-09-18 02:20:36.000000000 +0200 +++ linux-cg/include/linux/byteorder/swab.h 2006-09-18 02:20:51.000000000 +0200 @@ -1,6 +1,7 @@ #ifndef _LINUX_BYTEORDER_SWAB_H #define _LINUX_BYTEORDER_SWAB_H +/* @headercheck:-include linux/types.h@ */ /* * linux/byteorder/swab.h * Byte-swapping, independently from CPU endianness Index: linux-cg/include/linux/byteorder/swabb.h =================================================================== --- linux-cg.orig/include/linux/byteorder/swabb.h 2006-09-18 02:20:36.000000000 +0200 +++ linux-cg/include/linux/byteorder/swabb.h 2006-09-18 02:20:51.000000000 +0200 @@ -1,6 +1,7 @@ #ifndef _LINUX_BYTEORDER_SWABB_H #define _LINUX_BYTEORDER_SWABB_H +/* @headercheck:-include linux/types.h@ */ /* * linux/byteorder/swabb.h * SWAp Bytes Bizarrely -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/