Go to the documentation of this file. 1 #ifndef __LINUX_DEBUG_LOCKING_H
2 #define __LINUX_DEBUG_LOCKING_H
4 #include <linux/kernel.h>
14 static inline int __debug_locks_off(
void)
24 #define DEBUG_LOCKS_WARN_ON(c) \
28 if (!oops_in_progress && unlikely(c)) { \
29 if (debug_locks_off() && !debug_locks_silent) \
37 # define SMP_DEBUG_LOCKS_WARN_ON(c) DEBUG_LOCKS_WARN_ON(c)
39 # define SMP_DEBUG_LOCKS_WARN_ON(c) do { } while (0)
42 #ifdef CONFIG_DEBUG_LOCKING_API_SELFTESTS
45 # define locking_selftest() do { } while (0)