m68k: Fix xchg/cmpxchg to fail to link if given an inappropriate pointer
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Mar 2012 17:30:02 +0000 (18:30 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 28 Mar 2012 17:30:02 +0000 (18:30 +0100)
commit2501cf768e4009a06287a5ee842fd93dd4fd690e
tree06fa9a44fe28710000539d25ede65fd7e0c1f6ec
parentc9034c3a1d67486284b3b569595a4bd377aaf8cc
m68k: Fix xchg/cmpxchg to fail to link if given an inappropriate pointer

Fix the m68k versions of xchg() and cmpxchg() to fail to link if given an
inappropriately sized pointer rather than BUG()'ing at runtime.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>
cc: linux-m68k@lists.linux-m68k.org
arch/m68k/include/asm/system.h