[DRBD-cvs] r1778 - branches/drbd-0.7/drbd

www-data www-data at garcon.linbit.com
Tue Apr 5 14:30:22 CEST 2005


Author: phil
Date: 2005-04-05 14:30:20 +0200 (Tue, 05 Apr 2005)
New Revision: 1778

Modified:
   branches/drbd-0.7/drbd/drbd_compat_wrappers.h
   branches/drbd-0.7/drbd/lru_cache.c
Log:
Make drbd-0.7 to compile on 2.4.18 again


Modified: branches/drbd-0.7/drbd/drbd_compat_wrappers.h
===================================================================
--- branches/drbd-0.7/drbd/drbd_compat_wrappers.h	2005-04-04 15:19:41 UTC (rev 1777)
+++ branches/drbd-0.7/drbd/drbd_compat_wrappers.h	2005-04-05 12:30:20 UTC (rev 1778)
@@ -14,8 +14,8 @@
  */
 static inline void dump_stack(void)
 {
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,9)
-	// It seems that on 2.4.9 even show_stack is not available.
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,18)
+	// It seems that before 2.4.18 even show_stack is not available.
         show_stack(0);
 #endif
 }

Modified: branches/drbd-0.7/drbd/lru_cache.c
===================================================================
--- branches/drbd-0.7/drbd/lru_cache.c	2005-04-04 15:19:41 UTC (rev 1777)
+++ branches/drbd-0.7/drbd/lru_cache.c	2005-04-05 12:30:20 UTC (rev 1778)
@@ -24,7 +24,7 @@
    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
  */
-
+#include <linux/compiler.h> // for likely()
 #include <linux/bitops.h>
 #include <linux/vmalloc.h>
 #include <linux/string.h> // for memset



More information about the drbd-cvs mailing list