xref: /openbsd/sys/dev/pci/drm/include/linux/lockdep.h (revision d89ec533)
1 /* Public domain. */
2 
3 #ifndef _LINUX_LOCKDEP_H
4 #define _LINUX_LOCKDEP_H
5 
6 struct lock_class_key {
7 };
8 
9 struct pin_cookie {
10 };
11 
12 #define might_lock(lock)
13 #define might_lock_nested(lock, subc)
14 #define lockdep_assert_held(lock)	do { (void)(lock); } while(0)
15 #define lockdep_assert_held_once(lock)	do { (void)(lock); } while(0)
16 #define lock_acquire(lock, a, b, c, d, e, f)
17 #define lock_release(lock, a)
18 #define lock_acquire_shared_recursive(lock, a, b, c, d)
19 #define lockdep_set_subclass(a, b)
20 #define lockdep_unpin_lock(a, b)
21 #define lockdep_set_class(a, b)
22 #define lockdep_init_map(a, b, c, d)
23 #define lockdep_set_class_and_name(a, b, c)
24 
25 #define mutex_acquire(a, b, c, d)
26 #define mutex_release(a, b)
27 
28 #define SINGLE_DEPTH_NESTING		0
29 
30 #define lockdep_pin_lock(lock)		\
31 ({					\
32 	struct pin_cookie pc = {};	\
33 	pc;				\
34 })
35 
36 #endif
37