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

[PATCH] fs/proc/: function prototypes belong in header files

Function prototypes belong into header files.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 80851ef2
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include "internal.h"
static ssize_t proc_file_read(struct file *file, char __user *buf, static ssize_t proc_file_read(struct file *file, char __user *buf,
size_t nbytes, loff_t *ppos); size_t nbytes, loff_t *ppos);
static ssize_t proc_file_write(struct file *file, const char __user *buffer, static ssize_t proc_file_write(struct file *file, const char __user *buffer,
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
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) static inline struct proc_dir_entry * de_get(struct proc_dir_entry *de)
{ {
......
...@@ -37,6 +37,10 @@ extern int proc_tgid_stat(struct task_struct *, char *); ...@@ -37,6 +37,10 @@ extern int proc_tgid_stat(struct task_struct *, char *);
extern int proc_pid_status(struct task_struct *, char *); extern int proc_pid_status(struct task_struct *, char *);
extern int proc_pid_statm(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) static inline struct task_struct *proc_task(struct inode *inode)
{ {
return PROC_I(inode)->task; return PROC_I(inode)->task;
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include "internal.h"
struct proc_dir_entry *proc_net, *proc_net_stat, *proc_bus, *proc_root_fs, *proc_root_driver; struct proc_dir_entry *proc_net, *proc_net_stat, *proc_bus, *proc_root_fs, *proc_root_driver;
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
...@@ -36,7 +38,6 @@ static struct file_system_type proc_fs_type = { ...@@ -36,7 +38,6 @@ static struct file_system_type proc_fs_type = {
.kill_sb = kill_anon_super, .kill_sb = kill_anon_super,
}; };
extern int __init proc_init_inodecache(void);
void __init proc_root_init(void) void __init proc_root_init(void)
{ {
int err = proc_init_inodecache(); int err = proc_init_inodecache();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册