treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / lib / lockdep / lockdep.c
blob348a9d0fb766a450e1d5c96d56c435534f1ecb05
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/lockdep.h>
3 #include <stdlib.h>
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
9 #define list_for_each_entry_rcu list_for_each_entry
10 #define list_add_tail_rcu list_add_tail
12 u32 prandom_u32(void)
14 /* Used only by lock_pin_lock() which is dead code */
15 abort();
18 void print_irqtrace_events(struct task_struct *curr)
20 abort();
23 static struct new_utsname *init_utsname(void)
25 static struct new_utsname n = (struct new_utsname) {
26 .release = "liblockdep",
27 .version = LIBLOCKDEP_VERSION,
30 return &n;
33 #include "../../../kernel/locking/lockdep.c"