| Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 1 | #include <linux/lockdep.h> |
| Ben Hutchings | 3752466 | 2017-05-25 12:58:31 +0000 | [diff] [blame] | 2 | #include <stdlib.h> |
| Ingo Molnar | b2ed099 | 2016-02-29 10:25:32 +0100 | [diff] [blame] | 3 | |
| 4 | /* Trivial API wrappers, we don't (yet) have RCU in user-space: */ |
| 5 | #define hlist_for_each_entry_rcu hlist_for_each_entry |
| 6 | #define hlist_add_head_rcu hlist_add_head |
| 7 | #define hlist_del_rcu hlist_del |
| Levin, Alexander (Sasha Levin) | e58e871 | 2017-05-31 00:38:09 +0000 | [diff] [blame] | 8 | #define list_for_each_entry_rcu list_for_each_entry |
| 9 | #define list_add_tail_rcu list_add_tail |
| Ingo Molnar | b2ed099 | 2016-02-29 10:25:32 +0100 | [diff] [blame] | 10 | |
| Ben Hutchings | 3752466 | 2017-05-25 12:58:31 +0000 | [diff] [blame] | 11 | u32 prandom_u32(void) |
| 12 | { |
| 13 | /* Used only by lock_pin_lock() which is dead code */ |
| 14 | abort(); |
| 15 | } |
| 16 | |
| Ben Hutchings | 1baa754 | 2017-05-25 12:58:39 +0000 | [diff] [blame] | 17 | static struct new_utsname *init_utsname(void) |
| 18 | { |
| 19 | static struct new_utsname n = (struct new_utsname) { |
| 20 | .release = "liblockdep", |
| 21 | .version = LIBLOCKDEP_VERSION, |
| 22 | }; |
| 23 | |
| 24 | return &n; |
| 25 | } |
| 26 | |
| Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 27 | #include "../../../kernel/locking/lockdep.c" |