From 81f4797a105e2c5d6300f465d9fb9b7174d2177b Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 13 Jul 2015 10:01:37 -0400 Subject: [PATCH] LU-6790 build: handle external Intel OFED stack Besides the Mellanox stack Intel also releases their own OFED stack. Just like the Mellanox stack this Intel OFED stack has a compatibility layer to support distributions kernels. This layer provided stomps over the default kernel headers so like the Mellanox stack compact-2.6.h has to be placed before all other headers. The reason it didn't show up before with the Mellanox stacks is the Intel stack additionally stomps the pci layer of the kernel. Change-Id: If565f25432cf87723b69e5d65e00a7d5d301dc4f Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/15582 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Chris Horn Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- lnet/autoconf/lustre-lnet.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 84d8b26..649e484 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -268,12 +268,12 @@ directory which is likely in ${O2IBPATH%-*} EXTRA_OFED_INCLUDE="$EXTRA_OFED_INCLUDE -I$O2IBPATH/include" LB_CHECK_COMPILE([whether to enable OpenIB gen2 support], openib_gen2_support, [ - #include - #include - #include #ifdef HAVE_COMPAT_RDMA #include #endif + #include + #include + #include #include #include #include -- 1.8.3.1