mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Export panic_on_oops to modules
@ 2009-10-08 12:21 Simon Kagstrom
  0 siblings, 0 replies; only message in thread
From: Simon Kagstrom @ 2009-10-08 12:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: Simon Kågström

A recent fix to the mtdoops driver on the MTD mailing list makes use
of panic_on_oops to determine if mtd->panic_write should be called to
store an oops/panic:

  http://patchwork.ozlabs.org/patch/34732/

and thereby fixes mtdoops when panic_on_oops is set. Exporting
panic_on_oops enables mtdoops to be built as a module with this
patch.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
---
 kernel/panic.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index bcdef26..6d29be3 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -24,6 +24,8 @@
 #include <linux/dmi.h>
 
 int panic_on_oops;
+EXPORT_SYMBOL_GPL(panic_on_oops);
+
 static unsigned long tainted_mask;
 static int pause_on_oops;
 static int pause_on_oops_flag;
-- 
1.6.0.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-08 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-08 12:21 [PATCH] Export panic_on_oops to modules Simon Kagstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®