[DRBD-cvs] svn commit by phil - r2562 - trunk/drbd/linux - Workaround for RedHat's features.

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Tue Oct 24 14:06:59 CEST 2006


Author: phil
Date: 2006-10-24 14:06:58 +0200 (Tue, 24 Oct 2006)
New Revision: 2562

Modified:
   trunk/drbd/linux/connector.h
   trunk/drbd/linux/drbd_config.h
Log:
Workaround for RedHat's features.


Modified: trunk/drbd/linux/connector.h
===================================================================
--- trunk/drbd/linux/connector.h	2006-10-24 09:47:02 UTC (rev 2561)
+++ trunk/drbd/linux/connector.h	2006-10-24 12:06:58 UTC (rev 2562)
@@ -94,7 +94,7 @@
 
 #ifdef __KERNEL__
 
-#ifdef NETLINK_ROUTE6
+#if defined(NETLINK_ROUTE6) && !defined(KERNEL_HAS_GFP_T)
    /* pre 2.6.16 */
    /* This ifdef check needs to be refined */
 typedef unsigned __bitwise__ gfp_t;

Modified: trunk/drbd/linux/drbd_config.h
===================================================================
--- trunk/drbd/linux/drbd_config.h	2006-10-24 09:47:02 UTC (rev 2561)
+++ trunk/drbd/linux/drbd_config.h	2006-10-24 12:06:58 UTC (rev 2562)
@@ -52,4 +52,9 @@
 // Enable fault insertion code
 //#define DRBD_ENABLE_FAULTS
 
+// RedHat's 2.6.9 kernels have the gfp_t type. Mainline has this feature
+// since 2.6.16. If you build for RedHat enable the line below.
+// #define KERNEL_HAS_GFP_T
+
+
 #endif



More information about the drbd-cvs mailing list