xref: /openbsd-src/sys/dev/pci/drm/include/linux/lockdep.h (revision de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b)
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 
24 #define mutex_acquire(a, b, c, d)
25 #define mutex_release(a, b)
26 
27 #define SINGLE_DEPTH_NESTING		0
28 
29 #define lockdep_pin_lock(lock)		\
30 ({					\
31 	struct pin_cookie pc = {};	\
32 	pc;				\
33 })
34 
35 #endif
36