diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-31 16:10:18 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-30 17:17:03 -0400 |
commit | bf7eaba81d33f206c62d9b1e4234fdfcd0510bc7 (patch) | |
tree | 4a029fbf3dcf1ac528b39d938c75bd70a15d8143 /include/linux/debug_locks.h | |
parent | 63f13e5d1073e1d61b8bfbc9053210d93bacbf78 (diff) |
lockdep: debug_check_lock_not_held()
Diffstat (limited to 'include/linux/debug_locks.h')
-rw-r--r-- | include/linux/debug_locks.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 257ab3c92cb8..b9718692460d 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -7,6 +7,7 @@ #include <linux/bug.h> struct task_struct; +struct lock_class_key; extern int debug_locks __read_mostly; extern int debug_locks_silent __read_mostly; @@ -53,6 +54,7 @@ extern void debug_show_all_locks(void); extern void debug_show_held_locks(struct task_struct *task); extern void debug_check_no_locks_freed(const void *from, unsigned long len); extern void debug_check_no_locks_held(void); +void debug_check_lock_not_held(struct lock_class_key *); #else static inline void debug_show_all_locks(void) { |