From 7a9e3c0b3d285cf0a9ac9c3c7f818ab9c74b6a4d Mon Sep 17 00:00:00 2001 From: Potnuri Bharat Teja Date: Thu, 9 Feb 2017 17:16:03 +0530 Subject: [PATCH] compat/cxgb4: Support for RHEL 7.0 in rdma.m4 Check if idr_is_empty() is defined. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Steve Wise --- config/rdma.m4 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/config/rdma.m4 b/config/rdma.m4 index d8d0d32..0f13391 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -903,6 +903,36 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if netdevice.h has __dev_uc_sync]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + __dev_uc_sync(NULL, NULL, NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE___DEV_UC_SYNC, 1, + [__dev_uc_sync is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if netdevice.h has __dev_mc_sync]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + __dev_mc_sync(NULL, NULL, NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE___DEV_MC_SYNC, 1, + [__dev_mc_sync is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + AC_MSG_CHECKING([if netdevice.h has netdev_txq_bql_complete_prefetchw]) LB_LINUX_TRY_COMPILE([ #include @@ -2177,6 +2207,20 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if idr.h has idr_is_empty]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + bool x = idr_is_empty(NULL); + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_IDR_IS_EMPTY, 1, + [idr_is_empty is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + AC_MSG_CHECKING([if completion.h has reinit_completion]) LB_LINUX_TRY_COMPILE([ #include -- 2.41.0