sysctl extern cleanup - file nr
PATCH 8/17 sysctl extern cleanup - file nr
Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files.
Move sysctl_nr_open_min, sysctl_nr_open_max extern declarations to linux/file.h
Signed-off-by Dave Young <[email protected]>
--- include/linux/file.h | 1 + kernel/sysctl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
include/linux/file.h +1 -0
@@ -9,6 +9,7 @@#include <linux/types.h> #include <linux/posix_types.h> +extern int sysctl_nr_open_min, sysctl_nr_open_max;/* for sysctl */ struct file ;extern void __fput (struct file *);
kernel/sysctl.c +1 -1
@@ -59,6 +59,7 @@#include <linux/pid.h> #include <linux/compat.h> #include <linux/latencytop.h> +#include <linux/file.h> #include <asm/uaccess.h> #include <asm/processor.h>
@@ -74,7 +75,6 @@/* External variables not in a header file. */ extern int max_threads; -extern int sysctl_nr_open_min, sysctl_nr_open_max;#ifdef CONFIG_RCU_TORTURE_TEST extern int rcutorture_runnable;#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */