diff options
Diffstat (limited to 'kernel/locking/lockdep.c')
-rw-r--r-- | kernel/locking/lockdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index c47788fa85f9..8d32ae7768a7 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c | |||
@@ -732,7 +732,8 @@ look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) | |||
732 | * Huh! same key, different name? Did someone trample | 732 | * Huh! same key, different name? Did someone trample |
733 | * on some memory? We're most confused. | 733 | * on some memory? We're most confused. |
734 | */ | 734 | */ |
735 | WARN_ON_ONCE(class->name != lock->name); | 735 | WARN_ON_ONCE(class->name != lock->name && |
736 | lock->key != &__lockdep_no_validate__); | ||
736 | return class; | 737 | return class; |
737 | } | 738 | } |
738 | } | 739 | } |
@@ -2817,10 +2818,6 @@ static inline int validate_chain(struct task_struct *curr, | |||
2817 | { | 2818 | { |
2818 | return 1; | 2819 | return 1; |
2819 | } | 2820 | } |
2820 | |||
2821 | static void print_lock_trace(struct lock_trace *trace, unsigned int spaces) | ||
2822 | { | ||
2823 | } | ||
2824 | #endif | 2821 | #endif |
2825 | 2822 | ||
2826 | /* | 2823 | /* |