提交 e308e942 编写于 作者: S Sasha Levin

tools/liblockdep: add userspace versions of WRITE_ONCE and RCU_INIT_POINTER

These were added to the kernel code in cee34d88 ("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: NSasha Levin <sasha.levin@oracle.com>
上级 1393ba5c
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册