[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100220141620.GI3195@darkstar>
Date: Sat, 20 Feb 2010 22:16:20 +0800
From: Dave Young <hidave.darkstar@...il.com>
To: Dipankar Sarma <dipankar@...ibm.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Ingo Molnar <mingo@...e.hu>,
Lai Jiangshan <laijs@...fujitsu.com>,
Vegard Nossum <vegard.nossum@...il.com>,
Josh Triplett <josh@...htriplett.org>,
Andrew Morton <akpm@...ux-foundation.org>,
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 10/18] sysctl extern cleanup - rcu
Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.
Move rcutorture_runnable extern declaration to linux/rcupdate.h
Signed-off-by: Dave Young <hidave.darkstar@...il.com>
---
include/linux/rcupdate.h | 6 ++++++
kernel/sysctl.c | 3 ---
2 files changed, 6 insertions(+), 3 deletions(-)
--- linux-2.6.32.orig/include/linux/rcupdate.h 2010-02-20 14:02:21.664925977 +0800
+++ linux-2.6.32/include/linux/rcupdate.h 2010-02-20 14:21:31.394811788 +0800
@@ -41,6 +41,12 @@
#include <linux/lockdep.h>
#include <linux/completion.h>
+#ifdef CONFIG_SYSCTL
+#ifdef CONFIG_RCU_TORTURE_TEST
+extern int rcutorture_runnable;
+#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
+#endif
+
/**
* struct rcu_head - callback structure for use with RCU
* @next: next update requests in a list
--- linux-2.6.32.orig/kernel/sysctl.c 2010-02-20 14:18:05.088997885 +0800
+++ linux-2.6.32/kernel/sysctl.c 2010-02-20 14:20:08.432318998 +0800
@@ -75,9 +75,6 @@
#if defined(CONFIG_SYSCTL)
/* External variables not in a header file. */
-#ifdef CONFIG_RCU_TORTURE_TEST
-extern int rcutorture_runnable;
-#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
#ifdef CONFIG_BLOCK
extern int blk_iopoll_enabled;
#endif
--
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