[2.6 patch] init/do_mounts.c: proper prepare_namespace() prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch adds a proper protype for prepare_namespace() in 
include/linux/init.h.

Signed-off-by: Adrian Bunk <[email protected]>

---

 include/linux/init.h |    3 ++-
 init/do_mounts.c     |    1 +
 init/main.c          |    1 -
 3 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.20-mm2/include/linux/init.h.old	2007-02-25 19:54:02.000000000 +0100
+++ linux-2.6.20-mm2/include/linux/init.h	2007-02-25 19:57:56.000000000 +0100
@@ -72,7 +72,8 @@
 extern unsigned int reset_devices;
 
 /* used by init/main.c */
-extern void setup_arch(char **);
+void setup_arch(char **);
+void prepare_namespace(void);
 
 #endif
   
--- linux-2.6.20-mm2/init/do_mounts.c.old	2007-02-25 19:54:59.000000000 +0100
+++ linux-2.6.20-mm2/init/do_mounts.c	2007-02-25 19:55:12.000000000 +0100
@@ -9,6 +9,7 @@
 #include <linux/delay.h>
 #include <linux/mount.h>
 #include <linux/device.h>
+#include <linux/init.h>
 
 #include <linux/nfs_fs.h>
 #include <linux/nfs_fs_sb.h>
--- linux-2.6.20-mm2/init/main.c.old	2007-02-25 19:55:21.000000000 +0100
+++ linux-2.6.20-mm2/init/main.c	2007-02-25 19:55:35.000000000 +0100
@@ -94,7 +94,6 @@
 extern void prio_tree_init(void);
 extern void radix_tree_init(void);
 extern void free_initmem(void);
-extern void prepare_namespace(void);
 #ifdef	CONFIG_ACPI
 extern void acpi_early_init(void);
 #else

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux