linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove unused funcion proc_mknod
@ 2003-05-05 17:00 Christoph Hellwig
  2003-05-05 19:22 ` viro
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2003-05-05 17:00 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Not used currently and a rather bad idea in general..



--- 1.21/fs/proc/generic.c	Fri Apr 25 17:46:19 2003
+++ edited/fs/proc/generic.c	Mon May  5 17:26:34 2003
@@ -566,22 +566,6 @@
 	return ent;
 }
 
-struct proc_dir_entry *proc_mknod(const char *name, mode_t mode,
-		struct proc_dir_entry *parent, kdev_t rdev)
-{
-	struct proc_dir_entry *ent;
-
-	ent = proc_create(&parent,name,mode,1);
-	if (ent) {
-		ent->rdev = rdev;
-		if (proc_register(parent, ent) < 0) {
-			kfree(ent);
-			ent = NULL;
-		}
-	}
-	return ent;
-}
-
 struct proc_dir_entry *proc_mkdir(const char *name, struct proc_dir_entry *parent)
 {
 	struct proc_dir_entry *ent;
===== fs/proc/root.c 1.11 vs edited =====
--- 1.11/fs/proc/root.c	Sat Sep 28 17:36:29 2002
+++ edited/fs/proc/root.c	Mon May  5 17:26:26 2003
@@ -151,7 +151,6 @@
 EXPORT_SYMBOL(proc_sys_root);
 #endif
 EXPORT_SYMBOL(proc_symlink);
-EXPORT_SYMBOL(proc_mknod);
 EXPORT_SYMBOL(proc_mkdir);
 EXPORT_SYMBOL(create_proc_entry);
 EXPORT_SYMBOL(remove_proc_entry);
===== include/linux/proc_fs.h 1.15 vs edited =====
--- 1.15/include/linux/proc_fs.h	Tue Aug 13 01:20:00 2002
+++ edited/include/linux/proc_fs.h	Mon May  5 17:26:44 2003
@@ -133,8 +133,6 @@
 
 extern struct proc_dir_entry *proc_symlink(const char *,
 		struct proc_dir_entry *, const char *);
-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 *);
 
 static inline struct proc_dir_entry *create_proc_read_entry(const char *name,
@@ -182,8 +180,6 @@
 static inline void remove_proc_entry(const char *name, struct proc_dir_entry *parent) {};
 static inline struct proc_dir_entry *proc_symlink(const char *name,
 		struct proc_dir_entry *parent,char *dest) {return NULL;}
-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;}
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-09 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05 17:00 [PATCH] remove unused funcion proc_mknod Christoph Hellwig
2003-05-05 19:22 ` viro
2003-05-05 19:30   ` Christoph Hellwig
2003-05-05 20:45     ` Jeff Garzik
2003-05-09 11:43     ` Jaroslav Kysela
2003-05-09 11:47       ` Christoph Hellwig
2003-05-09 11:55         ` Jaroslav Kysela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).