Skip to contentSkip to conversation

proc: remove fs/proc/proc_misc.c

PATCH In review Alexey Dobriyan 2 participants 2 messages Oct 17, 2008 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 31/31 proc: remove fs/proc/proc_misc.c

Quoted 2 lines

From 1622821da166f6d282b383e0cd722c6ca3ead1c6 Mon Sep 17 00:00:00 2001

From: Alexey Dobriyan <[email protected]>
Date: Mon, 6 Oct 2008 14:49:39 +0400
Subject: [PATCH 31/31] proc: remove fs/proc/proc_misc.c

Now that everything was moved to their more or less expected places, apply rm(1).

---
 fs/proc/Makefile        |    2 +-
 fs/proc/proc_misc.c     |   64 -----------------------------------------------
 fs/proc/root.c          |    2 +-
 include/linux/proc_fs.h |    1 -
 4 files changed, 2 insertions(+), 67 deletions(-)
 delete mode 100644 fs/proc/proc_misc.c
fs/proc/Makefile +1 -1
index fef5244..63d9651 100644
@@ -8,7 +8,7 @@ proc-y			:= nommu.o task_nommu.o
 proc-$(CONFIG_MMU)	:= mmu.o task_mmu.o
 
 proc-y       += inode.o root.o base.o generic.o array.o \
-		proc_tty.o proc_misc.o
+		proc_tty.o
 proc-y	+= cmdline.o
 proc-y	+= cpuinfo.o
 proc-y	+= devices.o
fs/proc/proc_misc.c deleted +0 -64

64 lines not on this page · raw message

fs/proc/root.c +1 -1
index 2a3abd2..7761602 100644
@@ -117,7 +117,7 @@ void __init proc_root_init(void)
 		return;
 	}
 
-	proc_misc_init();
+	proc_symlink("mounts", NULL, "self/mounts");
 
 	proc_net_init();
 
include/linux/proc_fs.h +0 -1
index 9d83089..b8bdb96 100644
@@ -100,7 +100,6 @@ struct vmcore {
 extern spinlock_t proc_subdir_lock;
 
 extern void proc_root_init(void);
-extern void proc_misc_init(void);
 
 void proc_flush_task(struct task_struct *task);
 struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *);
Signature · 1 line
1.5.6.5