提交 62239ac2 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

proper prototype for proc_nr_files()

Add a proper prototype for proc_nr_files() in include/linux/fs.h
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f284ce72
...@@ -283,6 +283,7 @@ extern int dir_notify_enable; ...@@ -283,6 +283,7 @@ extern int dir_notify_enable;
#include <linux/init.h> #include <linux/init.h>
#include <linux/pid.h> #include <linux/pid.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/sysctl.h>
#include <asm/atomic.h> #include <asm/atomic.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
...@@ -2050,5 +2051,9 @@ static inline void free_secdata(void *secdata) ...@@ -2050,5 +2051,9 @@ static inline void free_secdata(void *secdata)
{ } { }
#endif /* CONFIG_SECURITY */ #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 /* __KERNEL__ */
#endif /* _LINUX_FS_H */ #endif /* _LINUX_FS_H */
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/fs.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kobject.h> #include <linux/kobject.h>
...@@ -49,9 +50,6 @@ ...@@ -49,9 +50,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/processor.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 #ifdef CONFIG_X86
#include <asm/nmi.h> #include <asm/nmi.h>
#include <asm/stacktrace.h> #include <asm/stacktrace.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册