[Pvfs2-cvs] commit by robl in pvfs2-1/maint/config: kernel.m4
CVS commit program
cvs at parl.clemson.edu
Mon Jan 22 17:48:36 EST 2007
Update of /projects/cvsroot/pvfs2-1/maint/config
In directory parlweb1:/tmp/cvs-serv905/maint/config
Modified Files:
kernel.m4
Log Message:
make things compile with 2.6.20 api changes
Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -u -w -p -u -r1.24 -r1.25
--- kernel.m4 19 Dec 2006 21:27:26 -0000 1.24
+++ kernel.m4 22 Jan 2007 22:48:36 -0000 1.25
@@ -112,6 +112,30 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(no)
)
+ dnl 2.6.20 deprecated kmem_cache_t
+ AC_MSG_CHECKING(for struct kmem_cache in kernel)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/slab.h>
+ static struct kmem_cache;
+ ], [],
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_STRUCT_KMEM_CACHE, 1, Define if struct kmem_cache is defined in kernel),
+ AC_MSG_RESULT(no)
+ )
+
+ dnl 2.6.20 removed SLAB_KERNEL. Need to use GFP_KERNEL instead
+ AC_MSG_CHECKING(for SLAB_KERNEL flag in kernel)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/slab.h>
+ static int flags = SLAB_KERNEL;
+ ], [],
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_SLAB_KERNEL, 1, Define if SLAB_KERNEL is defined in kernel),
+ AC_MSG_RESULT(no)
+ )
+
dnl The name of this field changed from memory_backed to capabilities
dnl in 2.6.12.
AC_MSG_CHECKING(for memory_backed in struct backing_dev_info in kernel)
More information about the Pvfs2-cvs
mailing list