[PATCH] 2.4.22-rc1-ac1 Missing declaration ininclude/linux/proc_fs.h

From: Stephane Ouellette
Date: Fri Aug 08 2003 - 23:42:17 EST


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.

--- linux-2.4.22-rc1-ac1-orig/include/linux/proc_fs.h Fri Aug 8 22:47:38 2003
+++ linux-2.4.22-rc1-ac1-fixed/include/linux/proc_fs.h Sat Aug 9 00:11:16 2003
@@ -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,