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