diff options
author | Alfredo Alvarez Fernandez <alfredoalvarezfernandez@gmail.com> | 2016-02-19 09:48:51 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-02-29 12:29:27 +0300 |
commit | 9d5a23ac8e0ede14a2b23740d231727ba5be483a (patch) | |
tree | 82ddd4196527b6d8d49ed2e63b762544efd08a2e /tools/lib/lockdep | |
parent | b2ed0998f66c4f68d3cccd2558c627b194e30415 (diff) | |
download | linux-9d5a23ac8e0ede14a2b23740d231727ba5be483a.tar.xz |
tools/lib/lockdep: Add userspace version of READ_ONCE()
This was added to the kernel code in <1658d35ead5d> ("list: Use
READ_ONCE() when testing for empty lists").
There's nothing special we need to do about it in userspace.
Signed-off-by: Alfredo Alvarez Fernandez <alfredoalvarezfernandez@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1455864533-7536-2-git-send-email-alfredoalvarezernandez@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/lib/lockdep')
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/compiler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/compiler.h b/tools/lib/lockdep/uinclude/linux/compiler.h index 6386dc3182a0..fd3e56a83fc2 100644 --- a/tools/lib/lockdep/uinclude/linux/compiler.h +++ b/tools/lib/lockdep/uinclude/linux/compiler.h @@ -3,6 +3,7 @@ #define __used __attribute__((__unused__)) #define unlikely +#define READ_ONCE(x) (x) #define WRITE_ONCE(x, val) x=(val) #define RCU_INIT_POINTER(p, v) p=(v) |