diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-05 11:01:15 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-05 12:01:50 -0400 |
commit | b35de672e74ceea6482b4f690ad053aec8465c5d (patch) | |
tree | 97929ba37d40cc8263b503f78660bdaf2eed95ea /arch/arm | |
parent | afbc8d8e72daa5a5faf6a0242186bdfcc42b2427 (diff) |
Revert "[ARM] use the new byteorder headers"
This reverts commit ae82cbfc8beaa69007aa09966d3983ac938c3577. It
needs the new byteorder headers to be exported to userspace, and
they aren't yet -- and probably shouldn't be, at this point in the
2.6.27 release cycle (or ever, for that matter).
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/byteorder.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index d04a7a2bc2e9..4fbfb22f65a0 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h | |||
@@ -18,15 +18,7 @@ | |||
18 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
19 | #include <asm/types.h> | 19 | #include <asm/types.h> |
20 | 20 | ||
21 | #ifdef __ARMEB__ | 21 | static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) |
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 | { | 22 | { |
31 | __u32 t; | 23 | __u32 t; |
32 | 24 | ||
@@ -48,8 +40,19 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
48 | 40 | ||
49 | return x; | 41 | return x; |
50 | } | 42 | } |
51 | #define __arch_swab32 __arch_swab32 | ||
52 | 43 | ||
53 | #include <linux/byteorder.h> | 44 | #define __arch__swab32(x) ___arch__swab32(x) |
45 | |||
46 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
47 | # define __BYTEORDER_HAS_U64__ | ||
48 | # define __SWAB_64_THRU_32__ | ||
49 | #endif | ||
50 | |||
51 | #ifdef __ARMEB__ | ||
52 | #include <linux/byteorder/big_endian.h> | ||
53 | #else | ||
54 | #include <linux/byteorder/little_endian.h> | ||
55 | #endif | ||
54 | 56 | ||
55 | #endif | 57 | #endif |
58 | |||