patch-2.3.99-pre1 linux/fs/proc/procfs_syms.c

Next file: linux/fs/qnx4/inode.c
Previous file: linux/fs/partitions/sgi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/proc/procfs_syms.c linux/fs/proc/procfs_syms.c
@@ -22,7 +22,15 @@
 
 static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, 0);
 
-int __init init_proc_fs(void)
+static int __init init_proc_fs(void)
 {
-	return register_filesystem(&proc_fs_type) == 0;
+	return register_filesystem(&proc_fs_type);
 }
+
+static void __exit exit_proc_fs(void)
+{
+	unregister_filesystem(&proc_fs_type);
+}
+
+module_init(init_proc_fs)
+module_exit(exit_proc_fs)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)