diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 6d4a05d4ef..9769d167be 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -536,31 +536,6 @@ AS_IF([test $ENABLEO2IB != "no"], [ [function ib_inc_rkey exist]) ]) - # In MOFED 4.6, the second and third parameters for - # ib_post_send() and ib_post_recv() are declared with - # 'const'. - tmp_flags="$EXTRA_KCFLAGS" - EXTRA_KCFLAGS="-Werror" - LB_CHECK_COMPILE([if 'ib_post_send() and ib_post_recv()' have const parameters], - ib_post_send_recv_const, [ - #ifdef HAVE_COMPAT_RDMA - #undef PACKAGE_NAME - #undef PACKAGE_TARNAME - #undef PACKAGE_VERSION - #undef PACKAGE_STRING - #undef PACKAGE_BUGREPORT - #undef PACKAGE_URL - #include - #endif - #include - ],[ - ib_post_send(NULL, (const struct ib_send_wr *)NULL, - (const struct ib_send_wr **)NULL); - ],[ - AC_DEFINE(HAVE_IB_POST_SEND_RECV_CONST, 1, - [ib_post_send and ib_post_recv have const parameters]) - ]) - EXTRA_KCFLAGS="$tmp_flags"