Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757825AbZJHMdD (ORCPT ); Thu, 8 Oct 2009 08:33:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757659AbZJHMdB (ORCPT ); Thu, 8 Oct 2009 08:33:01 -0400 Received: from ernst.netinsight.se ([194.16.221.21]:39139 "HELO ernst.netinsight.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756771AbZJHMdA (ORCPT ); Thu, 8 Oct 2009 08:33:00 -0400 X-Greylist: delayed 656 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Oct 2009 08:32:55 EDT Date: Thu, 8 Oct 2009 14:21:04 +0200 From: Simon Kagstrom To: linux-kernel@vger.kernel.org Cc: Simon =?ISO-8859-1?Q?K=E5gstr=F6m?= Subject: [PATCH] Export panic_on_oops to modules Message-ID: <20091008142104.25c81fea@marrow.netinsight.se> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 36 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 --- 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 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/