linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 06/18] sysctl extern cleanup - mm
@ 2010-02-20 14:12 Dave Young
  2010-02-21  0:58 ` David Rientjes
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Young @ 2010-02-20 14:12 UTC (permalink / raw)
  To: Andrew Morton, Ingo Molnar, Andi Kleen, Hugh Dickins,
	Nick Piggin, Peter Zijlstra, James Morris, Eric W. Biederman,
	linux-mm, linux-kernel

Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.

Move min_free_kbytes extern declaration to linux/mm.h

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
 include/linux/mm.h |    1 +
 kernel/sysctl.c    |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.32.orig/include/linux/mm.h	2010-02-20 14:02:25.281592573 +0800
+++ linux-2.6.32/include/linux/mm.h	2010-02-20 14:14:21.374855298 +0800
@@ -31,6 +31,7 @@ extern int page_cluster;
 
 #ifdef CONFIG_SYSCTL
 extern int sysctl_legacy_va_layout;
+extern int min_free_kbytes;
 #else
 #define sysctl_legacy_va_layout 0
 #endif
--- linux-2.6.32.orig/kernel/sysctl.c	2010-02-20 14:13:08.415694935 +0800
+++ linux-2.6.32/kernel/sysctl.c	2010-02-20 14:13:28.511525875 +0800
@@ -72,7 +72,6 @@
 #if defined(CONFIG_SYSCTL)
 
 /* External variables not in a header file. */
-extern int min_free_kbytes;
 extern int compat_log;
 extern int latencytop_enabled;
 extern int sysctl_nr_open_min, sysctl_nr_open_max;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH 06/18] sysctl extern cleanup - mm
  2010-02-20 14:12 [PATCH 06/18] sysctl extern cleanup - mm Dave Young
@ 2010-02-21  0:58 ` David Rientjes
  0 siblings, 0 replies; 2+ messages in thread
From: David Rientjes @ 2010-02-21  0:58 UTC (permalink / raw)
  To: Dave Young
  Cc: Andrew Morton, Ingo Molnar, Andi Kleen, Hugh Dickins,
	Nick Piggin, Peter Zijlstra, James Morris, Eric W. Biederman,
	linux-mm, linux-kernel

On Sat, 20 Feb 2010, 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 min_free_kbytes extern declaration to linux/mm.h
> 

It should be moved to include/linux/mmzone.h, that's where the sysctl 
handler is declared.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2010-02-21  0:58 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:12 [PATCH 06/18] sysctl extern cleanup - mm Dave Young
2010-02-21  0:58 ` David Rientjes

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