diff options
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 32676b35d2f5..8307f2f94d86 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -127,7 +127,12 @@ extern void pid_ns_release_proc(struct pid_namespace *ns); | |||
127 | * proc_tty.c | 127 | * proc_tty.c |
128 | */ | 128 | */ |
129 | struct tty_driver; | 129 | struct tty_driver; |
130 | #ifdef CONFIG_TTY | ||
130 | extern void proc_tty_init(void); | 131 | extern void proc_tty_init(void); |
132 | #else | ||
133 | static inline void proc_tty_init(void) | ||
134 | { } | ||
135 | #endif | ||
131 | extern void proc_tty_register_driver(struct tty_driver *driver); | 136 | extern void proc_tty_register_driver(struct tty_driver *driver); |
132 | extern void proc_tty_unregister_driver(struct tty_driver *driver); | 137 | extern void proc_tty_unregister_driver(struct tty_driver *driver); |
133 | 138 | ||
@@ -171,9 +176,6 @@ static inline struct proc_dir_entry *create_proc_read_entry(const char *name, | |||
171 | return res; | 176 | return res; |
172 | } | 177 | } |
173 | 178 | ||
174 | extern struct proc_dir_entry *proc_net_fops_create(struct net *net, | ||
175 | const char *name, umode_t mode, const struct file_operations *fops); | ||
176 | extern void proc_net_remove(struct net *net, const char *name); | ||
177 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, | 179 | extern struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, |
178 | struct proc_dir_entry *parent); | 180 | struct proc_dir_entry *parent); |
179 | 181 | ||
@@ -184,21 +186,15 @@ extern int proc_alloc_inum(unsigned int *pino); | |||
184 | extern void proc_free_inum(unsigned int inum); | 186 | extern void proc_free_inum(unsigned int inum); |
185 | #else | 187 | #else |
186 | 188 | ||
187 | #define proc_net_fops_create(net, name, mode, fops) ({ (void)(mode), NULL; }) | ||
188 | static inline void proc_net_remove(struct net *net, const char *name) {} | ||
189 | |||
190 | static inline void proc_flush_task(struct task_struct *task) | 189 | static inline void proc_flush_task(struct task_struct *task) |
191 | { | 190 | { |
192 | } | 191 | } |
193 | 192 | ||
194 | static inline struct proc_dir_entry *create_proc_entry(const char *name, | 193 | static inline struct proc_dir_entry *create_proc_entry(const char *name, |
195 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } | 194 | umode_t mode, struct proc_dir_entry *parent) { return NULL; } |
196 | static inline struct proc_dir_entry *proc_create(const char *name, | 195 | |
197 | umode_t mode, struct proc_dir_entry *parent, | 196 | #define proc_create(name, mode, parent, fops) ({ (void)(mode), NULL; }) |
198 | const struct file_operations *proc_fops) | 197 | |
199 | { | ||
200 | return NULL; | ||
201 | } | ||
202 | static inline struct proc_dir_entry *proc_create_data(const char *name, | 198 | static inline struct proc_dir_entry *proc_create_data(const char *name, |
203 | umode_t mode, struct proc_dir_entry *parent, | 199 | umode_t mode, struct proc_dir_entry *parent, |
204 | const struct file_operations *proc_fops, void *data) | 200 | const struct file_operations *proc_fops, void *data) |