mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
The following upstream commit:
4a389810bc ("kernel/locking/lockdep.c: convert hash tables to hlists")
broke the tools/lib/lockdep build. Add trivial RCU wrappers to fix it.
These wrappers should probably be moved into their own header file.
Cc: Andrew Morton <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Krinkin <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
9 lines
272 B
C
9 lines
272 B
C
#include <linux/lockdep.h>
|
|
|
|
/* Trivial API wrappers, we don't (yet) have RCU in user-space: */
|
|
#define hlist_for_each_entry_rcu hlist_for_each_entry
|
|
#define hlist_add_head_rcu hlist_add_head
|
|
#define hlist_del_rcu hlist_del
|
|
|
|
#include "../../../kernel/locking/lockdep.c"
|