Skip to content

Commit 002dff3

Browse files
committed
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) <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 3c91841 commit 002dff3

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

arch/arm/include/asm/vdso/gettimeofday.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#ifndef __ASSEMBLY__
99

10+
#include <asm/barrier.h>
1011
#include <asm/errno.h>
1112
#include <asm/unistd.h>
1213
#include <asm/vdso/cp15.h>

arch/arm64/include/asm/vdso/compat_gettimeofday.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#ifndef __ASSEMBLY__
99

10+
#include <asm/barrier.h>
1011
#include <asm/unistd.h>
1112
#include <asm/errno.h>
1213

arch/arm64/include/asm/vdso/gettimeofday.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#ifndef __ASSEMBLY__
99

10+
#include <asm/barrier.h>
1011
#include <asm/unistd.h>
1112

1213
#define VDSO_HAS_CLOCK_GETRES 1

arch/riscv/include/asm/vdso/gettimeofday.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#ifndef __ASSEMBLY__
66

7+
#include <asm/barrier.h>
78
#include <asm/unistd.h>
89
#include <asm/csr.h>
910
#include <uapi/linux/time.h>

include/asm-generic/rwonce.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#include <linux/kasan-checks.h>
2727
#include <linux/kcsan-checks.h>
2828

29-
#include <asm/barrier.h>
30-
3129
/*
3230
* Yes, this permits 64-bit accesses on 32-bit architectures. These will
3331
* actually be atomic in some cases (namely Armv7 + LPAE), but for others we

include/linux/nospec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#ifndef _LINUX_NOSPEC_H
77
#define _LINUX_NOSPEC_H
8+
9+
#include <linux/compiler.h>
810
#include <asm/barrier.h>
911

1012
struct task_struct;

0 commit comments

Comments
 (0)