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>
This commit is contained in:
Sasha Levin 2015-11-06 15:34:23 -05:00
parent 1393ba5c9b
commit e308e942e1
1 changed files with 2 additions and 0 deletions

View File

@ -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