proper prototype for proc_nr_files()
Subsystems (2)
PATCH 1/1 proper prototype for proc_nr_files()
This patch adds a proper prototype for proc_nr_files() in include/linux/fs.h
Signed-off-by Adrian Bunk <[email protected]>
---
include/linux/fs.h | 5 +++++ kernel/sysctl.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-)
include/linux/fs.h renamed from include/linux/fs.h.old +5 -0
@@ -302,6 +302,7 @@#include <linux/init.h> #include <linux/pid.h> #include <linux/mutex.h> +#include <linux/sysctl.h> #include <asm/atomic.h> #include <asm/semaphore.h>
@@ -2116,5 +2117,9 @@ { }#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 */
kernel/sysctl.c renamed from kernel/sysctl.c.old +1 -3
@@ -47,13 +47,11 @@#include <linux/nfs_fs.h> #include <linux/acpi.h> #include <linux/reboot.h> +#include <linux/fs.h> #include <asm/uaccess.h> #include <asm/processor.h> -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 <asm/nmi.h> #include <asm/stacktrace.h>