diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2015-11-06 15:34:23 -0500 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-11-06 16:01:36 -0500 |
commit | e308e942e122f5de1a180f0b2a4002d09a757f45 (patch) | |
tree | c9313e0df358f70dc107de17ee4f0f1cb9f0e07a | |
parent | 1393ba5c9beb2b33e315d9d4348a15ab3d1bf3a6 (diff) | |
download | linux-stable-e308e942e122f5de1a180f0b2a4002d09a757f45.tar.gz linux-stable-e308e942e122f5de1a180f0b2a4002d09a757f45.tar.bz2 linux-stable-e308e942e122f5de1a180f0b2a4002d09a757f45.zip |
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@oracle.com>
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/compiler.h b/tools/lib/lockdep/uinclude/linux/compiler.h index 7ac838a1f196..6386dc3182a0 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 |