diff options
author | David Howells <dhowells@redhat.com> | 2013-04-04 12:02:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:16:39 -0400 |
commit | 80e928f7ebb958f4d79d4099d1c5c0a015a23b93 (patch) | |
tree | 5a982cc0c8574cdeea268a99901d93f27689d6e7 /include/linux/proc_fs.h | |
parent | 3cba53765bdaeef0a5ee8680b0dd4b028f3cae79 (diff) |
proc: Kill create_proc_entry()
Kill create_proc_entry() in favour of create_proc_read_entry(), proc_create()
and proc_create_data().
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 5ae73e273e7e..bcc0e10ef1df 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -109,8 +109,6 @@ extern void proc_root_init(void); | |||
109 | 109 | ||
110 | void proc_flush_task(struct task_struct *task); | 110 | void proc_flush_task(struct task_struct *task); |
111 | 111 | ||
112 | extern struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, | ||
113 | struct proc_dir_entry *parent); | ||
114 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, | 112 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, |
115 | struct proc_dir_entry *parent, | 113 | struct proc_dir_entry *parent, |
116 | const struct file_operations *proc_fops, | 114 | const struct file_operations *proc_fops, |
@@ -164,17 +162,9 @@ static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode, | |||
164 | return proc_create_data(name, mode, parent, proc_fops, NULL); | 162 | return proc_create_data(name, mode, parent, proc_fops, NULL); |
165 | } | 163 | } |
166 | 164 | ||
167 | static inline struct proc_dir_entry *create_proc_read_entry(const char *name, | 165 | extern struct proc_dir_entry *create_proc_read_entry(const char *name, |
168 | umode_t mode, struct proc_dir_entry *base, | 166 | umode_t mode, struct proc_dir_entry *base, |
169 | read_proc_t *read_proc, void * data) | 167 | read_proc_t *read_proc, void *data); |
170 | { | ||
171 | struct proc_dir_entry *res=create_proc_entry(name,mode,base); | ||
172 | if (res) { | ||
173 | res->read_proc=read_proc; | ||
174 | res->data=data; | ||
175 | } | ||
176 | return res; | ||
177 | } | ||
178 | 168 | ||
179 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, | 169 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, |
180 | struct proc_dir_entry *parent); | 170 | struct proc_dir_entry *parent); |
@@ -190,9 +180,6 @@ static inline void proc_flush_task(struct task_struct *task) | |||
190 | { | 180 | { |
191 | } | 181 | } |
192 | 182 | ||
193 | static inline struct proc_dir_entry *create_proc_entry(const char *name, | ||
194 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } | ||
195 | |||
196 | #define proc_create(name, mode, parent, fops) ({ (void)(mode), NULL; }) | 183 | #define proc_create(name, mode, parent, fops) ({ (void)(mode), NULL; }) |
197 | 184 | ||
198 | static inline struct proc_dir_entry *proc_create_data(const char *name, | 185 | static inline struct proc_dir_entry *proc_create_data(const char *name, |