]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/cris/include/asm/byteorder.h
cris: introduce asm/swab.h
[net-next-2.6.git] / arch / cris / include / asm / byteorder.h
index cc8e418cfd14a10c65fc1dc8a3f41c78178db713..7678d86317ae481af00eb48ff8209df90e17d4ae 100644 (file)
@@ -1,25 +1,7 @@
 #ifndef _CRIS_BYTEORDER_H
 #define _CRIS_BYTEORDER_H
 
-#ifdef __GNUC__
-
-#ifdef __KERNEL__
-#include <arch/byteorder.h>
-
-/* defines are necessary because the other files detect the presence
- * of a defined __arch_swab32, not an inline
- */
-#define __arch__swab32(x) ___arch__swab32(x)
-#define __arch__swab16(x) ___arch__swab16(x)
-#endif /* __KERNEL__ */
-
-#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
-#  define __BYTEORDER_HAS_U64__
-#  define __SWAB_64_THRU_32__
-#endif
-
-#endif /* __GNUC__ */
-
+#include <asm/swab.h>
 #include <linux/byteorder/little_endian.h>
 
 #endif