patch-2.3.99-pre1 linux/fs/ncpfs/inode.c
Next file: linux/fs/nfs/read.c
Previous file: linux/fs/msdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Tue Mar 14 09:45:09 2000
- Orig file:
v2.3.51/linux/fs/ncpfs/inode.c
- Orig date:
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.51/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -698,15 +698,7 @@
static DECLARE_FSTYPE(ncp_fs_type, "ncpfs", ncp_read_super, 0);
-int __init init_ncp_fs(void)
-{
- return register_filesystem(&ncp_fs_type);
-}
-
-#ifdef MODULE
-EXPORT_NO_SYMBOLS;
-
-int init_module(void)
+static int __init init_ncp_fs(void)
{
DPRINTK("ncpfs: init_module called\n");
@@ -714,10 +706,10 @@
ncp_malloced = 0;
ncp_current_malloced = 0;
#endif
- return init_ncp_fs();
+ return register_filesystem(&ncp_fs_type);
}
-void cleanup_module(void)
+static void __exit exit_ncp_fs(void)
{
DPRINTK("ncpfs: cleanup_module called\n");
unregister_filesystem(&ncp_fs_type);
@@ -727,4 +719,7 @@
#endif
}
-#endif
+EXPORT_NO_SYMBOLS;
+
+module_init(init_ncp_fs)
+module_exit(exit_ncp_fs)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)