From patchwork Sun Oct 11 06:10:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: panic.c: export panic_on_oops From: Artem Bityutskiy X-Patchwork-Id: 35687 Message-Id: <1255241458-11665-1-git-send-email-dedekind1@gmail.com> To: Ingo Molnar Cc: Artem Bityutskiy , LKML , Aaro Koskinen , linux-mtd , Simon Kagstrom , Andrew Morton , David Woodhouse Date: Sun, 11 Oct 2009 09:10:58 +0300 From: Artem Bityutskiy We use the mtdoops module which stores oopses on the Flash partition, in order to make it possible to analyze them later. And mtdoops needs to know whether 'panic_on_oops' is on or off. Thus, we need this variable to be exported. Signed-off-by: Artem Bityutskiy Cc: Andrew Morton Cc: Aaro Koskinen Cc: David Woodhouse Cc: Simon Kagstrom Cc: linux-mtd Cc: LKML --- 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;