lkml.org 
[lkml]   [2003]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

--- 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,
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.050 / U:1.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site