diff options
Diffstat (limited to 'lib/locking-selftest.c')
-rw-r--r-- | lib/locking-selftest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c index 5cd05f20bdec..9bdc8d440b2b 100644 --- a/lib/locking-selftest.c +++ b/lib/locking-selftest.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/lockdep.h> | ||
18 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
19 | #include <linux/kallsyms.h> | 20 | #include <linux/kallsyms.h> |
20 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
@@ -889,9 +890,6 @@ GENERATE_PERMUTATIONS_3_EVENTS(irq_read_recursion_soft) | |||
889 | #include "locking-selftest-softirq.h" | 890 | #include "locking-selftest-softirq.h" |
890 | // GENERATE_PERMUTATIONS_3_EVENTS(irq_read_recursion2_soft) | 891 | // GENERATE_PERMUTATIONS_3_EVENTS(irq_read_recursion2_soft) |
891 | 892 | ||
892 | #define lockdep_reset() | ||
893 | #define lockdep_reset_lock(x) | ||
894 | |||
895 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 893 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
896 | # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map) | 894 | # define I_SPINLOCK(x) lockdep_reset_lock(&lock_##x.dep_map) |
897 | # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map) | 895 | # define I_RWLOCK(x) lockdep_reset_lock(&rwlock_##x.dep_map) |