summaryrefslogtreecommitdiff
path: root/include/linux/nospec.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-07-10 16:49:40 +0300
committerWill Deacon <will@kernel.org>2020-07-21 12:50:36 +0300
commit002dff36acfba3476b685a09f78ffb7c452f5951 (patch)
tree7d09b29aed61f6f3ff760a1c6a6767270f0489df /include/linux/nospec.h
parent3c9184109e78ea2371ca8fa66d7f36986a53af98 (diff)
downloadlinux-002dff36acfba3476b685a09f78ffb7c452f5951.tar.xz
asm/rwonce: Don't pull <asm/barrier.h> into 'asm-generic/rwonce.h'
Now that 'smp_read_barrier_depends()' has gone the way of the Norwegian Blue, drop the inclusion of <asm/barrier.h> in 'asm-generic/rwonce.h'. This requires fixups to some architecture vdso headers which were previously relying on 'asm/barrier.h' coming in via 'linux/compiler.h'. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/nospec.h')
-rw-r--r--include/linux/nospec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nospec.h b/include/linux/nospec.h
index 0c5ef54fd416..c1e79f72cd89 100644
--- a/include/linux/nospec.h
+++ b/include/linux/nospec.h
@@ -5,6 +5,8 @@
#ifndef _LINUX_NOSPEC_H
#define _LINUX_NOSPEC_H
+
+#include <linux/compiler.h>
#include <asm/barrier.h>
struct task_struct;