diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-08-18 17:47:55 -0700 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-27 20:05:27 +0100 |
commit | ae82cbfc8beaa69007aa09966d3983ac938c3577 (patch) | |
tree | 5af8d8afc21a26c311ccb2cd6b734436748b118f /arch/arm/include | |
parent | e4e4146ec5a0a4221eee051365422ad70cddb673 (diff) | |
download | blackbird-op-linux-ae82cbfc8beaa69007aa09966d3983ac938c3577.tar.gz blackbird-op-linux-ae82cbfc8beaa69007aa09966d3983ac938c3577.zip |
[ARM] use the new byteorder headers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/byteorder.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index 4fbfb22f65a0..d04a7a2bc2e9 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h @@ -18,7 +18,15 @@ #include <linux/compiler.h> #include <asm/types.h> -static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) +#ifdef __ARMEB__ +# define __BIG_ENDIAN +#else +# define __LITTLE_ENDIAN +#endif + +#define __SWAB_64_THRU_32__ + +static inline __attribute_const__ __u32 __arch_swab32(__u32 x) { __u32 t; @@ -40,19 +48,8 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) return x; } +#define __arch_swab32 __arch_swab32 -#define __arch__swab32(x) ___arch__swab32(x) - -#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) -# define __BYTEORDER_HAS_U64__ -# define __SWAB_64_THRU_32__ -#endif - -#ifdef __ARMEB__ -#include <linux/byteorder/big_endian.h> -#else -#include <linux/byteorder/little_endian.h> -#endif +#include <linux/byteorder.h> #endif - |