Skip to content

Commit b48ccb0

Browse files
author
Ingo Molnar
committed
locking: clarify kernel-taint warning message
Andi Kleen reported this message triggering on non-lockdep kernels: Disabling lockdep due to kernel taint Clarify the message to say 'lock debugging' - debug_locks_off() turns off all things lock debugging, not just lockdep. [ Impact: change kernel warning message text ] Reported-by: Andi Kleen <andi@firstfloor.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 0300e7f commit b48ccb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/panic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void add_taint(unsigned flag)
221221
* post-warning case.
222222
*/
223223
if (flag != TAINT_CRAP && flag != TAINT_WARN && __debug_locks_off())
224-
printk(KERN_WARNING "Disabling lockdep due to kernel taint\n");
224+
printk(KERN_WARNING "Disabling lock debugging due to kernel taint\n");
225225

226226
set_bit(flag, &tainted_mask);
227227
}

0 commit comments

Comments
 (0)