Whamcloud - gitweb
LU-709 build: Remove last bit of HAVE_GFP_T
authorJames Simmons <uja.ornl@gmail.com>
Fri, 30 Mar 2012 12:44:34 +0000 (08:44 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Apr 2012 04:01:39 +0000 (00:01 -0400)
The build fails when using a external OFED stack due to the
lack of HAVE_GFP_T. This test is no longer needed for newer
kernels.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I6957750736036d6a5150e85442565859e04ce975
Reviewed-on: http://review.whamcloud.com/2417
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/autoconf/ofed.m4

index e509eae..bcecc9d 100644 (file)
@@ -412,9 +412,7 @@ else
                LB_LINUX_TRY_COMPILE([
                        #include <linux/version.h>
                        #include <linux/pci.h>
-                       #if !HAVE_GFP_T
-                       typedef int gfp_t;
-                       #endif
+                       #include <linux/gfp.h>
                        #include <rdma/rdma_cm.h>
                        #include <rdma/ib_cm.h>
                        #include <rdma/ib_verbs.h>
index 826dcac..ca31fec 100644 (file)
@@ -5,9 +5,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/ib_verbs.h>
        ],[
                ib_dma_map_single(NULL, NULL, 0, 0);
@@ -24,9 +22,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/ib_verbs.h>
        ],[
                ib_create_cq(NULL, NULL, NULL, NULL, 0, 0);
@@ -43,9 +39,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/ib_verbs.h>
        ],[
                return RDMA_TRANSPORT_IWARP ==
@@ -62,9 +56,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_ADDR_CHANGE == 0);
@@ -80,9 +72,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0);
@@ -98,9 +88,7 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
-               #if !HAVE_GFP_T
-               typedef int gfp_t;
-               #endif
+               #include <linux/gfp.h>
                #include <rdma/rdma_cm.h>
        ],[
                rdma_set_reuseaddr(NULL, 1);