[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20100221142251.GA3002@darkstar>
Date: Sun, 21 Feb 2010 22:22:51 +0800
From: Dave Young <hidave.darkstar@...il.com>
To: Oleg Nesterov <oleg@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Ulrich Drepper <drepper@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
Roland McGrath <roland@...hat.com>,
Ingo Molnar <mingo@...e.hu>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
James Morris <jmorris@...ei.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH -mm 02/17] sysctl extern cleanup - signal
Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.
Move print_fatal_signals extern declaration to linux/signal.h
Signed-off-by: Dave Young <hidave.darkstar@...il.com>
---
include/linux/signal.h | 2 ++
kernel/sysctl.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.32.orig/include/linux/signal.h 2010-02-21 09:35:58.913190280 +0800
+++ linux-2.6.32/include/linux/signal.h 2010-02-21 09:41:38.006491648 +0800
@@ -7,6 +7,8 @@
#ifdef __KERNEL__
#include <linux/list.h>
+/* for sysctl */
+extern int print_fatal_signals;
/*
* Real Time signals may be queued.
*/
--- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 09:38:12.793177219 +0800
+++ linux-2.6.32/kernel/sysctl.c 2010-02-21 09:40:41.683996252 +0800
@@ -54,6 +54,7 @@
#include <linux/slow-work.h>
#include <linux/perf_event.h>
#include <linux/rcustring.h>
+#include <linux/signal.h>
#include <asm/uaccess.h>
#include <asm/processor.h>
@@ -68,7 +69,6 @@
#if defined(CONFIG_SYSCTL)
/* External variables not in a header file. */
-extern int print_fatal_signals;
extern int max_threads;
extern int core_uses_pid;
extern int suid_dumpable;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists