patch-2.3.99-pre1 linux/fs/smbfs/inode.c

Next file: linux/fs/super.c
Previous file: linux/fs/romfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -536,16 +536,7 @@
 
 static DECLARE_FSTYPE( smb_fs_type, "smbfs", smb_read_super, 0);
 
-int __init init_smb_fs(void)
-{
-	return register_filesystem(&smb_fs_type);
-}
-
-#ifdef MODULE
-EXPORT_NO_SYMBOLS;
-
-int
-init_module(void)
+static int __init init_smb_fs(void)
 {
 	pr_debug("smbfs: init_module called\n");
 
@@ -558,8 +549,7 @@
 	return init_smb_fs();
 }
 
-void
-cleanup_module(void)
+static void __exit exit_smb_fs(void)
 {
 	pr_debug("smbfs: cleanup_module called\n");
 	unregister_filesystem(&smb_fs_type);
@@ -570,4 +560,7 @@
 #endif
 }
 
-#endif
+EXPORT_NO_SYMBOLS;
+
+module_init(init_smb_fs)
+module_exit(exit_smb_fs)

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