--- atomic.h.orig 2006-02-28 21:01:59.000000000 +0200 +++ atomic.h 2006-02-28 21:01:34.000000000 +0200 @@ -142,12 +142,6 @@ } #endif -/* - * This function doesn't exist, so you'll get a linker error - * if something tries to do an invalid xchg(). - */ -extern void __xnarch_xchg_called_with_bad_pointer(void); - static __inline__ unsigned long __xchg(volatile void *ptr, unsigned long x, unsigned int size) { @@ -159,7 +153,6 @@ return __xchg_u64(ptr, x); #endif } - __xnarch_xchg_called_with_bad_pointer(); return x; }