public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 10/18] sysctl extern cleanup - rcu
@ 2010-02-20 14:16 Dave Young
  2010-02-20 20:44 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Young @ 2010-02-20 14:16 UTC (permalink / raw)
  To: Dipankar Sarma, Paul E. McKenney, Ingo Molnar, Lai Jiangshan,
	Vegard Nossum, Josh Triplett, Andrew Morton, Peter Zijlstra,
	James Morris, Eric W. Biederman, linux-kernel

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@gmail.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 10/18] sysctl extern cleanup - rcu
  2010-02-20 14:16 [PATCH 10/18] sysctl extern cleanup - rcu Dave Young
@ 2010-02-20 20:44 ` Josh Triplett
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Triplett @ 2010-02-20 20:44 UTC (permalink / raw)
  To: Dave Young
  Cc: Dipankar Sarma, Paul E. McKenney, Ingo Molnar, Lai Jiangshan,
	Vegard Nossum, Andrew Morton, Peter Zijlstra, James Morris,
	Eric W. Biederman, linux-kernel

On Sat, Feb 20, 2010 at 10:16:20PM +0800, Dave Young wrote:
> 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@gmail.com>

Acked-by: Josh Triplett <josh@joshtriplett.org>

That said, this could probably become something other than a sysctl
easily enough; debugfs or writable module parameters come to mind.

- Josh Triplett

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-20 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 14:16 [PATCH 10/18] sysctl extern cleanup - rcu Dave Young
2010-02-20 20:44 ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox