mirror of https://gitee.com/openkylin/linux.git
procfs: add stub for proc_mkdir_mode()
Provide a stub for proc_mkdir_mode() when CONFIG_PROC_FS is not enabled, just like the stub for proc_mkdir(). Fixes this linux-next build error: drivers/net/wireless/airo.c:4504: error: implicit declaration of function 'proc_mkdir_mode' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: "John W. Linville" <linville@tuxdriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b2db21997f
commit
f12a20fc9b
|
@ -208,6 +208,8 @@ static inline struct proc_dir_entry *proc_symlink(const char *name,
|
||||||
struct proc_dir_entry *parent,const char *dest) {return NULL;}
|
struct proc_dir_entry *parent,const char *dest) {return NULL;}
|
||||||
static inline struct proc_dir_entry *proc_mkdir(const char *name,
|
static inline struct proc_dir_entry *proc_mkdir(const char *name,
|
||||||
struct proc_dir_entry *parent) {return NULL;}
|
struct proc_dir_entry *parent) {return NULL;}
|
||||||
|
static inline struct proc_dir_entry *proc_mkdir_mode(const char *name,
|
||||||
|
mode_t mode, struct proc_dir_entry *parent) { return NULL; }
|
||||||
|
|
||||||
static inline struct proc_dir_entry *create_proc_read_entry(const char *name,
|
static inline struct proc_dir_entry *create_proc_read_entry(const char *name,
|
||||||
mode_t mode, struct proc_dir_entry *base,
|
mode_t mode, struct proc_dir_entry *base,
|
||||||
|
|
Loading…
Reference in New Issue