diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 2 | ||||
-rw-r--r-- | lib/locking-selftest.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 16021b09c184..16c2e98b7638 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -48,7 +48,7 @@ config DEBUG_KERNEL | |||
48 | config LOG_BUF_SHIFT | 48 | config LOG_BUF_SHIFT |
49 | int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL | 49 | int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL |
50 | range 12 21 | 50 | range 12 21 |
51 | default 17 if S390 | 51 | default 17 if S390 || LOCKDEP |
52 | default 16 if X86_NUMAQ || IA64 | 52 | default 16 if X86_NUMAQ || IA64 |
53 | default 15 if SMP | 53 | default 15 if SMP |
54 | default 14 | 54 | default 14 |
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) |