[Pvfs2-cvs] commit by pw in pvfs2/maint/config: kernel.m4
CVS commit program
cvs at parl.clemson.edu
Sat Dec 2 22:33:20 EST 2006
Update of /projects/cvsroot/pvfs2/maint/config
In directory parlweb1:/tmp/cvs-serv9222/maint/config
Modified Files:
kernel.m4
Log Message:
port kernel mod to 2.6.19
Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v
diff -u -p -p -u -r1.22 -r1.23
--- kernel.m4 1 Dec 2006 09:53:33 -0000 1.22
+++ kernel.m4 3 Dec 2006 03:33:20 -0000 1.23
@@ -343,7 +343,7 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(no)
)
- AC_MSG_CHECKING(if get_sb callbacks' in kernel has struct vfsmount argument)
+ AC_MSG_CHECKING(if get_sb callback in kernel has struct vfsmount argument)
dnl if this test passes, the kernel has it
dnl if this test fails, the kernel does not have it
AC_TRY_COMPILE([
@@ -633,6 +633,34 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_REGISTER_IOCTL32_CONVERSION, 1, Define if kernel has register_ioctl32_conversion),
)
+
+ AC_MSG_CHECKING(for int return value of kmem_cache_destroy)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/slab.h>
+ ], [
+ int i = kmem_cache_destroy(NULL);
+ ],
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_KMEM_CACHE_DESTROY_INT_RETURN, 1, Define if kmem_cache_destroy returns int),
+ AC_MSG_RESULT(no)
+ )
+
+ dnl As of 2.6.19, combined readv/writev into aio_read and aio_write
+ dnl functions. Detect this by not finding a readv member.
+ AC_MSG_CHECKING(for combined file_operations readv and aio_read)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/fs.h>
+ ], [
+ struct file_operations filop = {
+ .readv = NULL
+ };
+ ],
+ AC_MSG_RESULT(no),
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_COMBINED_AIO_AND_VECTOR, 1, Define if struct file_operations has combined aio_read and readv functions),
+ )
CFLAGS=$oldcflags
])
More information about the Pvfs2-cvs
mailing list