| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: proc-make-the-proc_create-stubs-static-inlines-fix |
| |
| fix CONFIG_PROC_FS=n |
| |
| Randy Dunlap <rdunlap@infradead.org> |
| Cc: Alexander Viro <viro@zeniv.linux.org.uk> |
| Cc: Christian Brauner <christian@brauner.io> |
| Cc: Christoph Hellwig <hch@infradead.org> |
| Cc: David Howells <dhowells@redhat.com> |
| Cc: Hans de Goede <hdegoede@redhat.com> |
| Cc: Stephen Rothwell <sfr@canb.auug.org.au> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| include/linux/proc_fs.h | 10 ++++++---- |
| 1 file changed, 6 insertions(+), 4 deletions(-) |
| |
| --- a/include/linux/proc_fs.h~proc-make-the-proc_create-stubs-static-inlines-fix |
| +++ a/include/linux/proc_fs.h |
| @@ -179,12 +179,14 @@ static inline struct proc_dir_entry *pro |
| #define proc_create_single(name, mode, parent, show) ({NULL;}) |
| #define proc_create_single_data(name, mode, parent, show, data) ({NULL;}) |
| |
| -static inline struct proc_dir_entry *proc_create( |
| - const char *, umode_t, struct proc_dir_entry *, const struct proc_ops *) |
| +static inline struct proc_dir_entry * |
| +proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, |
| + const struct proc_ops *proc_ops) |
| { return NULL; } |
| |
| -static inline struct proc_dir_entry *proc_create_data( |
| - const char *, umode_t, struct proc_dir_entry *, const struct proc_ops *, void *) |
| +static inline struct proc_dir_entry * |
| +proc_create_data(const char *name, umode_t mode, struct proc_dir_entry *parent, |
| + const struct proc_ops *proc_ops, void *data) |
| { return NULL; } |
| |
| static inline void proc_set_size(struct proc_dir_entry *de, loff_t size) {} |
| _ |