Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1345711 > unrolled thread
| Started by | tip-bot for Alfredo Alvarez Fernandez <tipbot@zytor.com> |
|---|---|
| First post | 2016-02-29 12:30 +0100 |
| Last post | 2016-02-29 12:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[tip:locking/core] tools/lib/lockdep: Add userspace version of READ_ONCE() tip-bot for Alfredo Alvarez Fernandez <tipbot@zytor.com> - 2016-02-29 12:30 +0100
| From | tip-bot for Alfredo Alvarez Fernandez <tipbot@zytor.com> |
|---|---|
| Date | 2016-02-29 12:30 +0100 |
| Subject | [tip:locking/core] tools/lib/lockdep: Add userspace version of READ_ONCE() |
| Message-ID | <r7ubw-2lS-23@gated-at.bofh.it> |
Commit-ID: 9d5a23ac8e0ede14a2b23740d231727ba5be483a
Gitweb: http://git.kernel.org/tip/9d5a23ac8e0ede14a2b23740d231727ba5be483a
Author: Alfredo Alvarez Fernandez <alfredoalvarezfernandez@gmail.com>
AuthorDate: Fri, 19 Feb 2016 07:48:51 +0100
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 29 Feb 2016 10:29:27 +0100
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>
---
tools/lib/lockdep/uinclude/linux/compiler.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/lib/lockdep/uinclude/linux/compiler.h b/tools/lib/lockdep/uinclude/linux/compiler.h
index 6386dc3..fd3e56a 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)
Back to top | Article view | linux.kernel
csiph-web