]> git.sesse.net Git - bcachefs-tools-debian/blob - c_src/include/linux/lockdep.h
rust: bump rpassword to v7.x
[bcachefs-tools-debian] / c_src / include / linux / lockdep.h
1 #ifndef __TOOLS_LINUX_LOCKDEP_H
2 #define __TOOLS_LINUX_LOCKDEP_H
3
4 struct lock_class_key {};
5 struct task_struct;
6
7 # define lock_acquire(l, s, t, r, c, n, i)      do { } while (0)
8 # define lock_release(l, i)                     do { } while (0)
9 # define lock_set_class(l, n, k, s, i)          do { } while (0)
10 # define lock_set_subclass(l, s, i)             do { } while (0)
11 # define lockdep_set_current_reclaim_state(g)   do { } while (0)
12 # define lockdep_clear_current_reclaim_state()  do { } while (0)
13 # define lockdep_trace_alloc(g)                 do { } while (0)
14 # define lockdep_info()                         do { } while (0)
15 # define lockdep_init_map(lock, name, key, sub) \
16                 do { (void)(name); (void)(key); } while (0)
17 # define lockdep_set_class(lock, key)           do { (void)(key); } while (0)
18 # define lockdep_set_class_and_name(lock, key, name) \
19                 do { (void)(key); (void)(name); } while (0)
20 #define lockdep_set_class_and_subclass(lock, key, sub) \
21                 do { (void)(key); } while (0)
22 #define lockdep_set_subclass(lock, sub)         do { } while (0)
23
24 #define lockdep_set_novalidate_class(lock) do { } while (0)
25
26 #define lockdep_assert_held(l)                  do { (void)(l); } while (0)
27 #define lockdep_assert_held_once(l)             do { (void)(l); } while (0)
28
29 #define lock_acquire_shared(l, s, t, n, i)
30
31 #define lockdep_acquire_shared(lock)
32
33 #define lock_contended(lockdep_map, ip) do {} while (0)
34 #define lock_acquired(lockdep_map, ip) do {} while (0)
35
36 static inline void debug_show_all_locks(void)
37 {
38 }
39
40 static inline void debug_show_held_locks(struct task_struct *task)
41 {
42 }
43
44 static inline void
45 debug_check_no_locks_freed(const void *from, unsigned long len)
46 {
47 }
48
49 static inline void
50 debug_check_no_locks_held(void)
51 {
52 }
53
54 static inline int lock_class_is_held(struct lock_class_key *k)
55 {
56         return 0;
57 }
58
59 #endif /* __TOOLS_LINUX_LOCKDEP_H */
60