diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-05-19 13:39:05 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-06-02 09:58:19 +0100 |
commit | 31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3 (patch) | |
tree | 492379ed8dff6c81b8c2b84ff9268414bcbd77d9 /arch/arm/kernel/traps.c | |
parent | 45b0fa09c6e47c02ac0a08bd2b3c6a73480222e0 (diff) | |
download | op-kernel-dev-31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3.zip op-kernel-dev-31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3.tar.gz |
ARM: remove __bad_xchg definition
We want link errors if xchg() is called for a variable size we do not
support.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/traps.c')
-rw-r--r-- | arch/arm/kernel/traps.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 3dce1a3..d358226 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -749,14 +749,6 @@ late_initcall(arm_mrc_hook_init); #endif -void __bad_xchg(volatile void *ptr, int size) -{ - pr_err("xchg: bad data size: pc 0x%p, ptr 0x%p, size %d\n", - __builtin_return_address(0), ptr, size); - BUG(); -} -EXPORT_SYMBOL(__bad_xchg); - /* * A data abort trap was taken, but we did not handle the instruction. * Try to abort the user program, or panic if it was the kernel. |