Commit 62239ac2b301abc397e70986649666cfb7835907
Committed by
Linus Torvalds
1 parent
f284ce7269
Exists in
master
and in
4 other branches
proper prototype for proc_nr_files()
Add a proper prototype for proc_nr_files() in include/linux/fs.h Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 6 additions and 3 deletions Side-by-side Diff
include/linux/fs.h
... | ... | @@ -283,6 +283,7 @@ |
283 | 283 | #include <linux/init.h> |
284 | 284 | #include <linux/pid.h> |
285 | 285 | #include <linux/mutex.h> |
286 | +#include <linux/sysctl.h> | |
286 | 287 | |
287 | 288 | #include <asm/atomic.h> |
288 | 289 | #include <asm/semaphore.h> |
... | ... | @@ -2049,6 +2050,10 @@ |
2049 | 2050 | static inline void free_secdata(void *secdata) |
2050 | 2051 | { } |
2051 | 2052 | #endif /* CONFIG_SECURITY */ |
2053 | + | |
2054 | +int proc_nr_files(ctl_table *table, int write, struct file *filp, | |
2055 | + void __user *buffer, size_t *lenp, loff_t *ppos); | |
2056 | + | |
2052 | 2057 | |
2053 | 2058 | #endif /* __KERNEL__ */ |
2054 | 2059 | #endif /* _LINUX_FS_H */ |
kernel/sysctl.c
... | ... | @@ -29,6 +29,7 @@ |
29 | 29 | #include <linux/utsname.h> |
30 | 30 | #include <linux/capability.h> |
31 | 31 | #include <linux/smp_lock.h> |
32 | +#include <linux/fs.h> | |
32 | 33 | #include <linux/init.h> |
33 | 34 | #include <linux/kernel.h> |
34 | 35 | #include <linux/kobject.h> |
... | ... | @@ -48,9 +49,6 @@ |
48 | 49 | |
49 | 50 | #include <asm/uaccess.h> |
50 | 51 | #include <asm/processor.h> |
51 | - | |
52 | -extern int proc_nr_files(ctl_table *table, int write, struct file *filp, | |
53 | - void __user *buffer, size_t *lenp, loff_t *ppos); | |
54 | 52 | |
55 | 53 | #ifdef CONFIG_X86 |
56 | 54 | #include <asm/nmi.h> |