tags 391305 +patch thanks On 2006-10-05 15:33 -0700, Debian Bug Tracking System wrote:
OK. I have fixed the problem. I don't really understand the details of this but changing inline to __inline__ and asm to __asm__ makes it all build OK. All the other arches except sh64 have __inline__ for this function rather than inline. I don't know if this means that sh64 doesn't build properly either? here is the patch: --- include/asm-arm/byteorder.h.orig 2006-10-05 22:44:38.679856441 +0100 +++ include/asm-arm/byteorder.h 2006-10-05 22:45:16.206748589 +0100 @@ -18,7 +18,7 @@ #include <linux/compiler.h> #include <asm/types.h> -static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) +static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) { __u32 t; @@ -29,7 +29,7 @@ * right thing and not screw it up to different degrees * depending on the gcc version. */ - asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); + __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); } else #endif t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */ Wookey -- Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK Tel +44 (0) 1223 811679 work: http://www.aleph1.co.uk/ play: http://wookware.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]