Whamcloud - gitweb
module's init function will not get called when loading in 2.6.
authorericm <ericm>
Mon, 23 Feb 2004 13:58:56 +0000 (13:58 +0000)
committerericm <ericm>
Mon, 23 Feb 2004 13:58:56 +0000 (13:58 +0000)
lustre/include/linux/lustre_compat25.h
lustre/lvfs/lvfs_linux.c

index e6339dc..a1fb3dc 100644 (file)
  * initialization routines must be called after device
  * driver initialization
  */
+#ifndef MODULE
 #undef module_init
 #define module_init(a)     late_initcall(a)
+#endif
 
 /* XXX our code should be using the 2.6 calls, not the other way around */
 #define TryLockPage(page)                TestSetPageLocked(page)
index 935548e..2855b52 100644 (file)
@@ -352,8 +352,6 @@ EXPORT_SYMBOL(l_readdir);
 EXPORT_SYMBOL(obd_memory);
 EXPORT_SYMBOL(obd_memmax);
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-
 static int __init lvfs_linux_init(void)
 {
         RETURN(0);
@@ -377,10 +375,3 @@ MODULE_LICENSE("GPL");
 
 module_init(lvfs_linux_init);
 module_exit(lvfs_linux_exit);
-
-#else
-
-#warning "lvfs_linux_init() and fsfilt_ext3_exit() aren't called on 2.6. MUST be fixed"
-
-
-#endif