diff options
author | David Howells <dhowells@redhat.com> | 2013-04-10 22:20:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-29 15:42:00 -0400 |
commit | 3cb5bf1bf947d325fcf6e9458952b51cfd7e6677 (patch) | |
tree | aa7fd55a3f9547ffd5a080adc5b38a18953c4033 /include/linux/proc_fs.h | |
parent | 526c59784c09fb794a5f0181429525bc473453c9 (diff) |
proc: Delete create_proc_read_entry()
Delete create_proc_read_entry() as it no longer has any users.
Also delete read_proc_t, write_proc_t, the read_proc member of the
proc_dir_entry struct and the support functions that use them. This saves a
pointer for every PDE allocated.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 8175b49396a6..f5105f4e54f4 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -47,11 +47,6 @@ enum { | |||
47 | * non-directory entries). | 47 | * non-directory entries). |
48 | */ | 48 | */ |
49 | 49 | ||
50 | typedef int (read_proc_t)(char *page, char **start, off_t off, | ||
51 | int count, int *eof, void *data); | ||
52 | typedef int (write_proc_t)(struct file *file, const char __user *buffer, | ||
53 | unsigned long count, void *data); | ||
54 | |||
55 | struct proc_dir_entry { | 50 | struct proc_dir_entry { |
56 | unsigned int low_ino; | 51 | unsigned int low_ino; |
57 | umode_t mode; | 52 | umode_t mode; |
@@ -63,7 +58,6 @@ struct proc_dir_entry { | |||
63 | const struct file_operations *proc_fops; | 58 | const struct file_operations *proc_fops; |
64 | struct proc_dir_entry *next, *parent, *subdir; | 59 | struct proc_dir_entry *next, *parent, *subdir; |
65 | void *data; | 60 | void *data; |
66 | read_proc_t *read_proc; | ||
67 | atomic_t count; /* use count */ | 61 | atomic_t count; /* use count */ |
68 | atomic_t in_use; /* number of callers into module in progress; */ | 62 | atomic_t in_use; /* number of callers into module in progress; */ |
69 | /* negative -> it's going away RSN */ | 63 | /* negative -> it's going away RSN */ |
@@ -154,11 +148,6 @@ static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode, | |||
154 | { | 148 | { |
155 | return proc_create_data(name, mode, parent, proc_fops, NULL); | 149 | return proc_create_data(name, mode, parent, proc_fops, NULL); |
156 | } | 150 | } |
157 | |||
158 | extern __deprecated | ||
159 | struct proc_dir_entry *create_proc_read_entry(const char *name, | ||
160 | umode_t mode, struct proc_dir_entry *base, | ||
161 | read_proc_t *read_proc, void *data); | ||
162 | 151 | ||
163 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, | 152 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, |
164 | struct proc_dir_entry *parent); | 153 | struct proc_dir_entry *parent); |
@@ -192,11 +181,6 @@ static inline struct proc_dir_entry *proc_mkdir(const char *name, | |||
192 | static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, | 181 | static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, |
193 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } | 182 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } |
194 | 183 | ||
195 | static inline __deprecated | ||
196 | struct proc_dir_entry *create_proc_read_entry(const char *name, | ||
197 | umode_t mode, struct proc_dir_entry *base, | ||
198 | read_proc_t *read_proc, void * data) { return NULL; } | ||
199 | |||
200 | struct tty_driver; | 184 | struct tty_driver; |
201 | static inline void proc_tty_register_driver(struct tty_driver *driver) {}; | 185 | static inline void proc_tty_register_driver(struct tty_driver *driver) {}; |
202 | static inline void proc_tty_unregister_driver(struct tty_driver *driver) {}; | 186 | static inline void proc_tty_unregister_driver(struct tty_driver *driver) {}; |