Whamcloud - gitweb
LU-3166 build: Fix failed OFED event checking on OFED-3.5 48/6048/2
authorShuichi Ihara <sihara@ddn.com>
Sat, 13 Apr 2013 21:03:04 +0000 (06:03 +0900)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 21 Jun 2013 20:11:35 +0000 (20:11 +0000)
compat driver's header for OFED-3.5 is missing to check
whether OFED events are defined in OFED-3.5.

Signed-off-by: Shuichi Ihara <sihara@ddn.com>
Change-Id: I46887fbd745dd59e492908418e16029a7b36c12a
Reviewed-on: http://review.whamcloud.com/6048
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Frank Heckes <Frank.Heckes@intel.com>
Reviewed-by: Isaac Huang <he.huang@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>
                #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);
                #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>
                #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);
                #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>
                #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);
                #include <rdma/rdma_cm.h>
        ],[
                rdma_set_reuseaddr(NULL, 1);