asm/rwonce: Don't pull <asm/barrier.h> into 'asm-generic/rwonce.h'
authorWill Deacon <will@kernel.org>
Fri, 10 Jul 2020 13:49:40 +0000 (14:49 +0100)
committerWill Deacon <will@kernel.org>
Tue, 21 Jul 2020 09:50:36 +0000 (10:50 +0100)
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>
arch/arm/include/asm/vdso/gettimeofday.h
arch/arm64/include/asm/vdso/compat_gettimeofday.h
arch/arm64/include/asm/vdso/gettimeofday.h
arch/riscv/include/asm/vdso/gettimeofday.h
include/asm-generic/rwonce.h
include/linux/nospec.h

index 36dc18553ed8f88850991d76fab739b1f54d9526..1b207cf07697543365a1e8fe1cd4929307f5520f 100644 (file)
@@ -7,6 +7,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/barrier.h>
 #include <asm/errno.h>
 #include <asm/unistd.h>
 #include <asm/vdso/cp15.h>
index b6907ae78e5303bc45804faeb83d3d002d7d28ad..bcf7649999a49d37b8261eda1a97bce9cea88096 100644 (file)
@@ -7,6 +7,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/barrier.h>
 #include <asm/unistd.h>
 #include <asm/errno.h>
 
index afba6ba332f8bdb8a2a7c40ce196c2306a2db715..127fa63893e2816219d34032f98096bd3469217e 100644 (file)
@@ -7,6 +7,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/barrier.h>
 #include <asm/unistd.h>
 
 #define VDSO_HAS_CLOCK_GETRES          1
index c8e818688ec17524f822eefec9169ee11069f627..3099362d9f2631fa5ea83548725b5697f5c2869b 100644 (file)
@@ -4,6 +4,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/barrier.h>
 #include <asm/unistd.h>
 #include <asm/csr.h>
 #include <uapi/linux/time.h>
index 3a7f737c77bd97f94ca4663d19e5dd0b6bc92eb2..8d0a6280e98247dc96450ed6a9e78fcb2e4fa555 100644 (file)
@@ -26,8 +26,6 @@
 #include <linux/kasan-checks.h>
 #include <linux/kcsan-checks.h>
 
-#include <asm/barrier.h>
-
 /*
  * Yes, this permits 64-bit accesses on 32-bit architectures. These will
  * actually be atomic in some cases (namely Armv7 + LPAE), but for others we
index 0c5ef54fd4162830b55aa676c1ecae4ea6ac23f5..c1e79f72cd892ad9f4c0de8248297ab9d2b67390 100644 (file)
@@ -5,6 +5,8 @@
 
 #ifndef _LINUX_NOSPEC_H
 #define _LINUX_NOSPEC_H
+
+#include <linux/compiler.h>
 #include <asm/barrier.h>
 
 struct task_struct;