patch-2.3.99-pre1 linux/fs/ufs/super.c

Next file: linux/fs/umsdos/inode.c
Previous file: linux/fs/ufs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/ufs/super.c linux/fs/ufs/super.c
@@ -951,22 +951,17 @@
 
 static DECLARE_FSTYPE_DEV(ufs_fs_type, "ufs", ufs_read_super);
 
-int __init init_ufs_fs(void)
+static int __init init_ufs_fs(void)
 {
 	return register_filesystem(&ufs_fs_type);
 }
 
-#ifdef MODULE
-EXPORT_NO_SYMBOLS;
-
-int init_module(void)
-{
-	return init_ufs_fs();
-}
-
-void cleanup_module(void)
+static void __exit exit_ufs_fs(void)
 {
 	unregister_filesystem(&ufs_fs_type);
 }
 
-#endif
+EXPORT_NO_SYMBOLS;
+
+module_init(init_ufs_fs)
+module_exit(exit_ufs_fs)

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