From: Adrian Bunk Date: Tue, 17 Jul 2007 11:03:45 +0000 (-0700) Subject: proper prototype for proc_nr_files() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=62239ac2b301abc397e70986649666cfb7835907;p=openwrt%2Fstaging%2Fblogic.git proper prototype for proc_nr_files() Add a proper prototype for proc_nr_files() in include/linux/fs.h Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/fs.h b/include/linux/fs.h index e68780810279..b3a9f0db9d80 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -283,6 +283,7 @@ extern int dir_notify_enable; #include #include #include +#include #include #include @@ -2050,5 +2051,9 @@ static inline void free_secdata(void *secdata) { } #endif /* CONFIG_SECURITY */ +int proc_nr_files(ctl_table *table, int write, struct file *filp, + void __user *buffer, size_t *lenp, loff_t *ppos); + + #endif /* __KERNEL__ */ #endif /* _LINUX_FS_H */ diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 48dae075d5c2..7063ebc6db05 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -49,9 +50,6 @@ #include #include -extern int proc_nr_files(ctl_table *table, int write, struct file *filp, - void __user *buffer, size_t *lenp, loff_t *ppos); - #ifdef CONFIG_X86 #include #include