Commit 11781343 authored by Andrew Morton's avatar Andrew Morton Committed by Anton Blanchard

[PATCH] remove_proc_entry() fix

From Bartlomiej Zolnierkiewicz

With !CONFIG_PROC_FS, ieee1394_core fails to compile because the argument to
this inline is still evaluated.  But it doesn't exist.

A general fix is to not evaluate the arg at all.
parent d168bb87
...@@ -205,7 +205,8 @@ static inline void proc_pid_flush(struct dentry *proc_dentry) { } ...@@ -205,7 +205,8 @@ static inline void proc_pid_flush(struct dentry *proc_dentry) { }
static inline struct proc_dir_entry *create_proc_entry(const char *name, static inline struct proc_dir_entry *create_proc_entry(const char *name,
mode_t mode, struct proc_dir_entry *parent) { return NULL; } mode_t mode, struct proc_dir_entry *parent) { return NULL; }
static inline void remove_proc_entry(const char *name, struct proc_dir_entry *parent) {}; #define remove_proc_entry(name, parent) do {} while (0)
static inline struct proc_dir_entry *proc_symlink(const char *name, static inline struct proc_dir_entry *proc_symlink(const char *name,
struct proc_dir_entry *parent,char *dest) {return NULL;} struct proc_dir_entry *parent,char *dest) {return NULL;}
static inline struct proc_dir_entry *proc_mknod(const char *name,mode_t mode, static inline struct proc_dir_entry *proc_mknod(const char *name,mode_t mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment