summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-05-19 14:39:05 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-06-02 10:58:19 +0200
commit31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3 (patch)
tree492379ed8dff6c81b8c2b84ff9268414bcbd77d9 /arch/arm/include
parentARM: 8369/1: ARMv7M: define size of vector table for Vybrid (diff)
downloadlinux-31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3.tar.xz
linux-31cd08c3a1db4b3164567a2a424b5e5dba6ce7a3.zip
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')
-rw-r--r--arch/arm/include/asm/cmpxchg.h1
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;
}