projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1393ba5
)
tools/liblockdep: add userspace versions of WRITE_ONCE and RCU_INIT_POINTER
author
Sasha Levin
<sasha.levin@oracle.com>
Fri, 6 Nov 2015 20:34:23 +0000
(15:34 -0500)
committer
Sasha Levin
<sasha.levin@oracle.com>
Fri, 6 Nov 2015 21:01:36 +0000
(16:01 -0500)
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>
tools/lib/lockdep/uinclude/linux/compiler.h
patch
|
blob
|
history
diff --git
a/tools/lib/lockdep/uinclude/linux/compiler.h
b/tools/lib/lockdep/uinclude/linux/compiler.h
index
7ac838a
..
6386dc3
100644
(file)
--- 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