Skip to content

Commit e308e94

Browse files
committed
tools/liblockdep: add userspace versions of WRITE_ONCE and RCU_INIT_POINTER
These were added to the kernel code in cee34d8 ("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 <[email protected]>
1 parent 1393ba5 commit e308e94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/lib/lockdep/uinclude/linux/compiler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33

44
#define __used __attribute__((__unused__))
55
#define unlikely
6+
#define WRITE_ONCE(x, val) x=(val)
7+
#define RCU_INIT_POINTER(p, v) p=(v)
68

79
#endif

0 commit comments

Comments
 (0)