init/main.c: remove an ifdef
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Jun 2014 23:12:20 +0000 (16:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:21 +0000 (16:54 -0700)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/proc_fs.h
init/main.c

index 608e60a74c3c124293bb3db038d3a1e8ba804432..9d117f61d976fb17ca6a6b19ccfba3f7bf63037b 100644 (file)
@@ -44,6 +44,10 @@ extern int remove_proc_subtree(const char *, struct proc_dir_entry *);
 
 #else /* CONFIG_PROC_FS */
 
+static inline void proc_root_init(void)
+{
+}
+
 static inline void proc_flush_task(struct task_struct *task)
 {
 }
index 4de815c0309a5cd7612011aeacac139d23b1496f..17d47bcdf5733bfea3a8005ca655dc89c46933b2 100644 (file)
@@ -629,9 +629,7 @@ asmlinkage __visible void __init start_kernel(void)
        signals_init();
        /* rootfs populating might need page-writeback */
        page_writeback_init();
-#ifdef CONFIG_PROC_FS
        proc_root_init();
-#endif
        cgroup_init();
        cpuset_init();
        taskstats_init_early();