2.4.22-rc1-ac1 Missing declaration in include/linux/proc_fs.h
PATCH 1/1 2.4.22-rc1-ac1 Missing declaration in include/linux/proc_fs.h
Folks,
the following patch fixes a compile warning about the implicit
declaration of proc_mkdir_mode() in proc_tty.c.
The patch applies against 2.4.22-rc1-ac1.
There is no such function (proc_mkdir_mode()) in 2.6.0-test2, so
the patch does not apply to it.
Stephane Ouellette.
include/linux/proc_fs.h +5 -1
@@ -143,6 +143,8 @@extern struct proc_dir_entry *proc_mknod (const char *,mode_t ,struct proc_dir_entry *,kdev_t );extern struct proc_dir_entry *proc_mkdir (const char *,struct proc_dir_entry *); +extern struct proc_dir_entry *proc_mkdir_mode (const char *name,mode_t mode, +struct proc_dir_entry *parent); static inline struct proc_dir_entry *create_proc_read_entry(const char *name, mode_t mode, struct proc_dir_entry *base,
@@ -192,7 +194,9 @@static inline struct proc_dir_entry *proc_mknod (const char *name,mode_t mode,struct proc_dir_entry *parent,kdev_t rdev) {return NULL ;}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, mode_t mode, struct proc_dir_entry *base,