Skip to contentSkip to conversation

Export panic_on_oops to modules

PATCH New Simon Kagstrom 1 participant 1 message Oct 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Export panic_on_oops to modules

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.

---
 kernel/panic.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/panic.c +2 -0
index bcdef26..6d29be3 100644
@@ -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;
Signature · 1 line
1.6.0.4