]> Pileus Git - ~andy/linux/blobdiff - arch/arm/include/asm/swab.h
Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
[~andy/linux] / arch / arm / include / asm / swab.h
index 32ee164a2f6bb73e066dd34debd6b1355f118f2a..b859d82e30cafb5489fdb0297319a570f8362df3 100644 (file)
@@ -22,7 +22,8 @@
 #  define __SWAB_64_THRU_32__
 #endif
 
-#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6
+#if defined(__KERNEL__)
+#if __LINUX_ARM_ARCH__ >= 6
 
 static inline __attribute_const__ __u32 __arch_swahb32(__u32 x)
 {
@@ -39,8 +40,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
 }
 #define __arch_swab32 __arch_swab32
 
-#else
+#endif
+#endif
 
+#if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6
 static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
 {
        __u32 t;