X-Git-Url: https://git.openfabrics.org/?p=compat-rdma%2Fcompat.git;a=blobdiff_plain;f=config%2Frdma.m4;h=fc5f474e1555fbda65a262efcc8d9e5c5fe3431a;hp=266d53a2d6d3d4b27b11d7d88d0d91d93342d95f;hb=f6fe522eafc81f16f562566c4d9a8045d2966089;hpb=2bec069a88cc29371e52b0d54715ac6987c562c5 diff --git a/config/rdma.m4 b/config/rdma.m4 index 266d53a..fc5f474 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -3840,6 +3840,68 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if struct file_operations has write_iter]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + const struct file_operations fo = { + .write_iter = NULL, + }; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_FILE_OPS_WRITE_ITER, 1, + [write_iter is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if linux/fs.h has inode_lock]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + inode_lock(NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_INODE_LOCK, 1, + [inode_lock is defined in fs.h]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if linux/dcache.h has simple_positive]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + int i = simple_positive(NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SIMPLE_POSITIVE, 1, + [simple_positive is defined in dcache.h]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if __GFP_RECLAIM is defined]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + gfp_t rc = __GFP_RECLAIM; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_GFP_RECLAIM, 1, + [__GFP_RECLAIM is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + ]) # # COMPAT_CONFIG_HEADERS