Skip to contentSkip to conversation

sysctl extern cleanup - mm

PATCH In review Dave Young 1 participant 1 message Feb 21, 2010

Subsystems (4)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 5/17 sysctl extern cleanup - mm

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

---
 include/linux/mmzone.h |    1 +
 kernel/sysctl.c        |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
include/linux/mmzone.h +1 -0
@@ -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 *);
kernel/sysctl.c +0 -1
@@ -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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>