]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/lib/lockdep/lockdep.c
tools/lib/lockdep: Fix 'defined but not used' warning for init_utsname()
[mirror_ubuntu-bionic-kernel.git] / tools / lib / lockdep / lockdep.c
1 #include <linux/lockdep.h>
2 #include <stdlib.h>
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
8
9 u32 prandom_u32(void)
10 {
11 /* Used only by lock_pin_lock() which is dead code */
12 abort();
13 }
14
15 static struct new_utsname *init_utsname(void)
16 {
17 static struct new_utsname n = (struct new_utsname) {
18 .release = "liblockdep",
19 .version = LIBLOCKDEP_VERSION,
20 };
21
22 return &n;
23 }
24
25 #include "../../../kernel/locking/lockdep.c"