Whamcloud - gitweb
LU-3166 build: Fix failed OFED event checking on OFED-3.5 05/8205/2
authorShuichi Ihara <sihara@ddn.com>
Thu, 7 Nov 2013 11:42:12 +0000 (20:42 +0900)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 18 Nov 2013 14:15:47 +0000 (14:15 +0000)
compat driver's header for OFED-3.5 is missing to check
whether OFED events are defined in OFED-3.5.

backport from http://review.whamcloud.com/#/c/6048/

Signed-off-by: Shuichi Ihara <sihara@ddn.com>
Change-Id: If7f888e4343e94021270dac79028ded46226ea6e
Reviewed-on: http://review.whamcloud.com/8205
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/autoconf/ofed.m4

index 8b800c5..029b84a 100644 (file)
@@ -40,6 +40,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_ADDR_CHANGE == 0);
@@ -56,6 +59,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0);
@@ -72,6 +78,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                rdma_set_reuseaddr(NULL, 1);