]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87e921bfdba762063dd2280c5a40f7c00336dabc
tree06fa9a44fe28710000539d25ede65fd7e0c1f6ec
parent719878162382e77f764132e4ccfa970986719a87
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