diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index e6339dcde73a5e805806a1ea9235e064ad5637d5..a1fb3dca47995d93b1ed20f47368a861aa7a0255 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -38,8 +38,10 @@ * 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) diff --git a/lustre/lvfs/lvfs_linux.c b/lustre/lvfs/lvfs_linux.c index 935548e763f2c73382454492143b9789fda8e89a..2855b52c53e9adcc1a2413ea61434806cd43675e 100644 --- a/lustre/lvfs/lvfs_linux.c +++ b/lustre/lvfs/lvfs_linux.c @@ -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