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/include/asm/cmpxchg.h | |
parent | 45b0fa09c6e47c02ac0a08bd2b3c6a73480222e0 (diff) | |
download | linux-31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3.tar.bz2 |
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/include/asm/cmpxchg.h')
-rw-r--r-- | arch/arm/include/asm/cmpxchg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cmpxchg.h b/arch/arm/include/asm/cmpxchg.h index abb2c3769b01..f4d74ab3ec1f 100644 --- a/arch/arm/include/asm/cmpxchg.h +++ b/arch/arm/include/asm/cmpxchg.h @@ -94,6 +94,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size break; #endif default: + /* Cause a link-time error, the xchg() size is not supported */ __bad_xchg(ptr, size), ret = 0; break; } |