* [PATCH -mm 05/17] sysctl extern cleanup - mm
@ 2010-02-21 14:23 Dave Young
0 siblings, 0 replies; only message in thread
From: Dave Young @ 2010-02-21 14:23 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, David Rientjes
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/mmzone.h
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
include/linux/mmzone.h | 1 +
kernel/sysctl.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.32.orig/include/linux/mmzone.h 2010-02-21 09:50:34.007270577 +0800
+++ linux-2.6.32/include/linux/mmzone.h 2010-02-21 09:52:21.259760505 +0800
@@ -744,6 +744,7 @@ static inline int is_dma(struct zone *zo
struct ctl_table;
int min_free_kbytes_sysctl_handler(struct ctl_table *, int,
void __user *, size_t *, loff_t *);
+extern int min_free_kbytes; /* for sysctl */
extern int sysctl_lowmem_reserve_ratio[MAX_NR_ZONES-1];
int lowmem_reserve_ratio_sysctl_handler(struct ctl_table *, int,
void __user *, size_t *, loff_t *);
--- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 09:48:06.843951983 +0800
+++ linux-2.6.32/kernel/sysctl.c 2010-02-21 09:52:58.139756932 +0800
@@ -72,7 +72,6 @@
/* External variables not in a header file. */
extern int max_threads;
-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] only message in thread
only message in thread, other threads:[~2010-02-21 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-21 14:23 [PATCH -mm 05/17] sysctl extern cleanup - mm Dave Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).