]> git.openfabrics.org - ~tnikolova/compat/.git/commitdiff
compat/cxgb4: Support for RHEL 7.0 in rdma.m4
authorPotnuri Bharat Teja <bharat@chelsio.com>
Thu, 9 Feb 2017 11:46:03 +0000 (17:16 +0530)
committerSteve Wise <swise@opengridcomputing.com>
Fri, 17 Feb 2017 16:51:58 +0000 (08:51 -0800)
Check if idr_is_empty() is defined.

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
config/rdma.m4

index d8d0d320d5ce4726a90a5edd2d8228ecaea70f7b..0f133918d0947fde36a1ed560efd19145a67314d 100644 (file)
@@ -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 <linux/netdevice.h>
+       ],[
+               __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 <linux/netdevice.h>
+       ],[
+               __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 <linux/netdevice.h>
@@ -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 <linux/idr.h>
+       ],[
+               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 <linux/completion.h>