]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86: Generate cmpxchg build failures
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 9 Oct 2009 08:12:46 +0000 (10:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Oct 2009 13:57:00 +0000 (15:57 +0200)
commitf3834b9ef68067199486740b31f691afb14dbdf5
tree825825528f9501095da3101da7ad2f0e2a6351a4
parent63312b6a6faae3f2e5577f2b001e3b504f10a2aa
x86: Generate cmpxchg build failures

Rework the x86 cmpxchg() implementation to generate build failures
when used on improper types.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <1254771187.21044.22.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h