aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/swab.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-12-13 10:07:49 -0500
committerDavid Howells <dhowells@redhat.com>2011-12-13 10:07:49 -0500
commit1632b9e2a14ce9f4e08faf6c4380431d63319bd3 (patch)
tree572e45a2de74d233af5d98242bafbd193e074f43 /arch/arm/include/asm/swab.h
parentfdc29805bd7cae133303045fc0249d76f3827613 (diff)
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
Split trivial #if defined(__KERNEL__) && X conditionals to make automated disintegration easier. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/swab.h')
-rw-r--r--arch/arm/include/asm/swab.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/include/asm/swab.h b/arch/arm/include/asm/swab.h
index 9997ad20eff1..e82adf64d1dd 100644
--- a/arch/arm/include/asm/swab.h
+++ b/arch/arm/include/asm/swab.h
@@ -22,7 +22,8 @@
22# define __SWAB_64_THRU_32__ 22# define __SWAB_64_THRU_32__
23#endif 23#endif
24 24
25#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6 25#if defined(__KERNEL__)
26#if __LINUX_ARM_ARCH__ >= 6
26 27
27static inline __attribute_const__ __u16 __arch_swab16(__u16 x) 28static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
28{ 29{
@@ -38,8 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
38} 39}
39#define __arch_swab32 __arch_swab32 40#define __arch_swab32 __arch_swab32
40 41
41#else 42#endif
43#endif
42 44
45#if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6
43static inline __attribute_const__ __u32 __arch_swab32(__u32 x) 46static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
44{ 47{
45 __u32 t; 48 __u32 t;