patch-2.4.0-test10 linux/include/asm-ppc/byteorder.h

Next file: linux/include/asm-ppc/init.h
Previous file: linux/include/asm-mips64/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/include/asm-ppc/byteorder.h linux/include/asm-ppc/byteorder.h
@@ -38,11 +38,7 @@
 /* alas, egcs sounds like it has a bug in this code that doesn't use the
    inline asm correctly, and can cause file corruption. Until I hear that
    it's fixed, I can live without the extra speed. I hope. */
-#if !(__GNUC__ >= 2 && __GNUC_MINOR__ >= 90)
 #if 0
-#  define __arch_swab16(x) ld_le16(&x)
-#  define __arch_swab32(x) ld_le32(&x)
-#else
 static __inline__ __const__ __u16 ___arch__swab16(__u16 value)
 {
 	__u16 result;
@@ -67,8 +63,6 @@
 #define __arch__swab32(x) ___arch__swab32(x)
 #define __arch__swab16(x) ___arch__swab16(x)
 #endif /* 0 */
-
-#endif
 
 /* The same, but returns converted value from the location pointer by addr. */
 #define __arch__swab16p(addr) ld_le16(addr)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)