From f047a98147d81e58bea3e8d8cf569d635486f283 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Tue, 19 Feb 2013 00:43:10 +0000 Subject: [PATCH] --- yaml --- r: 352795 b: refs/heads/master c: 4fc1a601f147abe3bfb4d70fe718110ed21953e1 h: refs/heads/master i: 352793: 90af9c47f6f167525951639de47af7401538c945 352791: 51b9e04bad302c296fcafbd52c283d71ca9c0f48 v: v3 --- [refs] | 2 +- trunk/include/linux/proc_fs.h | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index fa6543d66a9c..7aa616729892 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 629821d9b05254063df774594cfe15c0343b73f2 +refs/heads/master: 4fc1a601f147abe3bfb4d70fe718110ed21953e1 diff --git a/trunk/include/linux/proc_fs.h b/trunk/include/linux/proc_fs.h index 319f69422667..d0a1f2ca1c3f 100644 --- a/trunk/include/linux/proc_fs.h +++ b/trunk/include/linux/proc_fs.h @@ -187,12 +187,9 @@ static inline void proc_flush_task(struct task_struct *task) static inline struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, struct proc_dir_entry *parent) { return NULL; } -static inline struct proc_dir_entry *proc_create(const char *name, - umode_t mode, struct proc_dir_entry *parent, - const struct file_operations *proc_fops) -{ - return NULL; -} + +#define proc_create(name, mode, parent, fops) ({ (void)(mode), NULL; }) + static inline struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops, void *data)