소스 검색

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>
Sasha Levin 9 년 전
부모
커밋
e308e942e1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tools/lib/lockdep/uinclude/linux/compiler.h

+ 2 - 0
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