[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>

authored by Harvey Harrison and committed by Russell King ae82cbfc e4e4146e

+11 -14
+11 -14
arch/arm/include/asm/byteorder.h
··· 18 #include <linux/compiler.h> 19 #include <asm/types.h> 20 21 - static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) 22 { 23 __u32 t; 24 ··· 48 49 return x; 50 } 51 52 - #define __arch__swab32(x) ___arch__swab32(x) 53 - 54 - #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) 55 - # define __BYTEORDER_HAS_U64__ 56 - # define __SWAB_64_THRU_32__ 57 - #endif 58 - 59 - #ifdef __ARMEB__ 60 - #include <linux/byteorder/big_endian.h> 61 - #else 62 - #include <linux/byteorder/little_endian.h> 63 - #endif 64 65 #endif 66 -
··· 18 #include <linux/compiler.h> 19 #include <asm/types.h> 20 21 + #ifdef __ARMEB__ 22 + # define __BIG_ENDIAN 23 + #else 24 + # define __LITTLE_ENDIAN 25 + #endif 26 + 27 + #define __SWAB_64_THRU_32__ 28 + 29 + static inline __attribute_const__ __u32 __arch_swab32(__u32 x) 30 { 31 __u32 t; 32 ··· 40 41 return x; 42 } 43 + #define __arch_swab32 __arch_swab32 44 45 + #include <linux/byteorder.h> 46 47 #endif