patch-1.3.39 linux/fs/xiafs/inode.c

Next file: linux/fs/xiafs/namei.c
Previous file: linux/fs/xiafs/fsync.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/fs/xiafs/inode.c linux/fs/xiafs/inode.c
@@ -9,13 +9,7 @@
  *  This software may be redistributed per Linux Copyright.
  */
 
-#ifdef MODULE
 #include <linux/module.h>
-#include <linux/version.h>
-#else
-#define MOD_INC_USE_COUNT
-#define MOD_DEC_USE_COUNT
-#endif
 
 #include <linux/sched.h>
 #include <linux/xia_fs.h>
@@ -521,16 +515,13 @@
 
 /* Every kernel module contains stuff like this. */
 
-char kernel_version[] = UTS_RELEASE;
-
 static struct file_system_type xiafs_fs_type = {
 	xiafs_read_super, "xiafs", 1, NULL
 };
 
 int init_module(void)
 {
-	register_filesystem(&xiafs_fs_type);
-	return 0;
+	return register_filesystem(&xiafs_fs_type);
 }
 
 void cleanup_module(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this