projects/linux·commit f12a20fc

procfs: add stub for proc_mkdir_mode()

f12a20fc · Randy Dunlap <[email protected]> · 2011-05-17 15:44:12 -07:00

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 <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: "John W. Linville" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
f12a20fc9bfba4218ecbc4e40c8e08dc2a85dc99
Parents
b2db2199

Changes

1 files changed · +2 −0

FileStatusAddDelContent
include/linux/proc_fs.hmodified+2−0View file

include/linux/proc_fs.h

View file
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 838c114..eaf4350 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -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;}
static inline struct proc_dir_entry *proc_mkdir(const char *name,
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,
mode_t mode, struct proc_dir_entry *base,