summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/cmpxchg.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-02-27 13:50:20 +0300
committerWill Deacon <will.deacon@arm.com>2018-03-27 15:15:49 +0300
commit2a58fca9a7b4a3953c3e983ef80e36df85293a7c (patch)
tree1422b01e432d90e6031589c06d1ef48b3a627a07 /arch/arm64/include/asm/cmpxchg.h
parentc9406e514b95e825af20967430786a234d2dcabd (diff)
downloadlinux-2a58fca9a7b4a3953c3e983ef80e36df85293a7c.tar.xz
arm64: cmpxchg: Include linux/compiler.h in asm/cmpxchg.h
We need linux/compiler.h for unreachable(), so #include it here. Reported-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cmpxchg.h')
-rw-r--r--arch/arm64/include/asm/cmpxchg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cmpxchg.h b/arch/arm64/include/asm/cmpxchg.h
index 19d4a18c2ac8..4f5fd2a36e6e 100644
--- a/arch/arm64/include/asm/cmpxchg.h
+++ b/arch/arm64/include/asm/cmpxchg.h
@@ -19,6 +19,7 @@
#define __ASM_CMPXCHG_H
#include <linux/build_bug.h>
+#include <linux/compiler.h>
#include <asm/atomic.h>
#include <asm/barrier.h>