Subject: Re: linux-next: origin tree build failure

From: David Miller <[email-masked]>
Date: Tue, 14 Apr 2009 01:57:27 -0700 (PDT)

From: Stephen Rothwell <[email-masked]>
Date: Tue, 14 Apr 2009 14:43:17 +1000

> Dave, arch/sparc/include/asm/atomic_32.h should really include
> asm/system.h since xchg is used in there.

That's true.

But atomic.h is not the proper place to obtain xchg() from, which is
asm/system.h, and that's what debug_locks.h needs to include if it
needs to use xchg().

This is why the s390 build broke in precisely the same way.