From: Andi Kleen <andi@firstfloor.org>
To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] Don't print lockdep taint message for !LOCKDEP
Date: Sun, 19 Apr 2009 19:33:42 +0200 [thread overview]
Message-ID: <20090419173342.GA18041@basil.nowhere.org> (raw)
Don't print lockdep taint message for !LOCKDEP
I was surprised to see a
Disabling lockdep due to kernel taint
message in my lockdep disabled kernel. This patch ifdefs this message
to not be printed when lockdep is not enabled.
BTW in my case it was due to a thermal event. I'm not sure it's really
needed to disable lockdep on thermal events, but I left this alone for
now.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
kernel/panic.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.30-rc2-ak/kernel/panic.c
===================================================================
--- linux-2.6.30-rc2-ak.orig/kernel/panic.c 2009-04-15 11:14:36.000000000 +0200
+++ linux-2.6.30-rc2-ak/kernel/panic.c 2009-04-19 19:29:07.000000000 +0200
@@ -213,6 +213,7 @@
void add_taint(unsigned flag)
{
+#ifdef CONFIG_LOCKDEP
/*
* Can't trust the integrity of the kernel anymore.
* We don't call directly debug_locks_off() because the issue
@@ -222,6 +223,7 @@
*/
if (flag != TAINT_CRAP && flag != TAINT_WARN && __debug_locks_off())
printk(KERN_WARNING "Disabling lockdep due to kernel taint\n");
+#endif
set_bit(flag, &tainted_mask);
}
reply other threads:[~2009-04-19 17:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090419173342.GA18041@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome