[Pvfs2-cvs] commit by robl in pvfs2-1/maint/config: kernel.m4

CVS commit program cvs at parl.clemson.edu
Wed Oct 31 17:55:38 EST 2007


Update of /projects/cvsroot/pvfs2-1/maint/config
In directory parlweb1:/tmp/cvs-serv31969/maint/config

Modified Files:
	kernel.m4 
Log Message:
2.6.23 changes the kmem_cache_create() API


Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -u -w -p -u -r1.42 -r1.43
--- kernel.m4	31 Aug 2007 23:16:40 -0000	1.42
+++ kernel.m4	31 Oct 2007 22:55:38 -0000	1.43
@@ -832,5 +832,18 @@ AC_DEFUN([AX_KERNEL_FEATURES],
 	AC_MSG_RESULT(no)
 	)
 
+	dnl 2.6.23 removed a parameter from kmem_cache_create
+	AC_MSG_CHECKING(for eight-argument kmem_cache_create)
+	AC_TRY_COMPILE([
+	    #define __KERNEL__
+	    #include <linux/slab.h>
+	], [
+	   kmem_cache_create("config-test", 0, 0, 0, NULL, NULL)
+	],
+	AC_MSG_RESULT(yes)
+	AC_DEFINE(HAVE_EIGHT_ARG_KMEM_CACHE_CREATE, 1, [Define if kernel (2.6.22 or older) has kmem_cache_create with eight args]),
+	AC_MSG_RESULT(no)
+	)
+
 	CFLAGS=$oldcflags
 ])



More information about the Pvfs2-cvs mailing list