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