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(c) do {} while(0) 17 #define lockdep_assert_held(lock) do { (void)(lock); } while(0) 18 #define lockdep_assert_held_once(lock) do { (void)(lock); } while(0) 19 #define lockdep_assert_once(lock) do { (void)(lock); } while(0) 20 #define lockdep_assert_not_held(lock) do { (void)(lock); } while(0) 21 #define lockdep_assert_none_held_once() do {} while(0) 22 #define lock_acquire(lock, a, b, c, d, e, f) 23 #define lock_release(lock, a) 24 #define lock_acquire_shared_recursive(lock, a, b, c, d) 25 #define lockdep_set_subclass(a, b) 26 #define lockdep_unpin_lock(a, b) 27 #define lockdep_set_class(a, b) 28 #define lockdep_init_map(a, b, c, d) 29 #define lockdep_set_class_and_name(a, b, c) 30 #define lockdep_is_held(lock) 0 31 32 #define mutex_acquire(a, b, c, d) 33 #define mutex_release(a, b) 34 35 #define SINGLE_DEPTH_NESTING 0 36 37 #define lockdep_pin_lock(lock) \ 38 ({ \ 39 struct pin_cookie pc = {}; \ 40 pc; \ 41 }) 42 43 #endif 44