[tip:locking/urgent] tools/liblockdep: add userspace versions of WRITE_ONCE and RCU_INIT_POINTER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  e308e942e122f5de1a180f0b2a4002d09a757f45
Gitweb:     http://git.kernel.org/tip/e308e942e122f5de1a180f0b2a4002d09a757f45
Author:     Sasha Levin <sasha.levin@xxxxxxxxxx>
AuthorDate: Fri, 6 Nov 2015 15:34:23 -0500
Committer:  Sasha Levin <sasha.levin@xxxxxxxxxx>
CommitDate: Fri, 6 Nov 2015 16:01:36 -0500

tools/liblockdep: add userspace versions of WRITE_ONCE and RCU_INIT_POINTER

These were added to the kernel code in cee34d88c ("lockdep: Fix a race between
/proc/lock_stat and module unload"). There's nothing special we need to do
about them in userspace.

Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>
---
 tools/lib/lockdep/uinclude/linux/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/lib/lockdep/uinclude/linux/compiler.h b/tools/lib/lockdep/uinclude/linux/compiler.h
index 7ac838a..6386dc3 100644
--- a/tools/lib/lockdep/uinclude/linux/compiler.h
+++ b/tools/lib/lockdep/uinclude/linux/compiler.h
@@ -3,5 +3,7 @@
 
 #define __used		__attribute__((__unused__))
 #define unlikely
+#define WRITE_ONCE(x, val) x=(val)
+#define RCU_INIT_POINTER(p, v) p=(v)
 
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux