From: Adrian Bunk Function prototypes belong into header files. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- fs/proc/generic.c | 2 ++ fs/proc/inode.c | 2 +- fs/proc/internal.h | 4 ++++ fs/proc/root.c | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff -puN fs/proc/generic.c~fs-proc-function-prototypes-belong-into-header-files fs/proc/generic.c --- devel/fs/proc/generic.c~fs-proc-function-prototypes-belong-into-header-files 2005-12-13 16:49:02.000000000 -0800 +++ devel-akpm/fs/proc/generic.c 2005-12-13 16:49:02.000000000 -0800 @@ -21,6 +21,8 @@ #include #include +#include "internal.h" + static ssize_t proc_file_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos); static ssize_t proc_file_write(struct file *file, const char __user *buffer, diff -puN fs/proc/inode.c~fs-proc-function-prototypes-belong-into-header-files fs/proc/inode.c --- devel/fs/proc/inode.c~fs-proc-function-prototypes-belong-into-header-files 2005-12-13 16:49:02.000000000 -0800 +++ devel-akpm/fs/proc/inode.c 2005-12-13 16:49:02.000000000 -0800 @@ -19,7 +19,7 @@ #include #include -extern void free_proc_entry(struct proc_dir_entry *); +#include "internal.h" static inline struct proc_dir_entry * de_get(struct proc_dir_entry *de) { diff -puN fs/proc/internal.h~fs-proc-function-prototypes-belong-into-header-files fs/proc/internal.h --- devel/fs/proc/internal.h~fs-proc-function-prototypes-belong-into-header-files 2005-12-13 16:49:02.000000000 -0800 +++ devel-akpm/fs/proc/internal.h 2005-12-13 16:49:02.000000000 -0800 @@ -37,6 +37,10 @@ extern int proc_tgid_stat(struct task_st extern int proc_pid_status(struct task_struct *, char *); extern int proc_pid_statm(struct task_struct *, char *); +void free_proc_entry(struct proc_dir_entry *de); + +int proc_init_inodecache(void); + static inline struct task_struct *proc_task(struct inode *inode) { return PROC_I(inode)->task; diff -puN fs/proc/root.c~fs-proc-function-prototypes-belong-into-header-files fs/proc/root.c --- devel/fs/proc/root.c~fs-proc-function-prototypes-belong-into-header-files 2005-12-13 16:49:02.000000000 -0800 +++ devel-akpm/fs/proc/root.c 2005-12-13 16:49:02.000000000 -0800 @@ -18,6 +18,8 @@ #include #include +#include "internal.h" + struct proc_dir_entry *proc_net, *proc_net_stat, *proc_bus, *proc_root_fs, *proc_root_driver; #ifdef CONFIG_SYSCTL @@ -36,7 +38,6 @@ static struct file_system_type proc_fs_t .kill_sb = kill_anon_super, }; -extern int __init proc_init_inodecache(void); void __init proc_root_init(void) { int err = proc_init_inodecache(); _