From 4d107e91a5d5a7f50a46507dcb29a4610087158e Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Thu, 25 Jul 2013 16:53:17 +0400 Subject: [PATCH 1/1] LU-3637 lnet: build Lustre with Intel OFED for Xeon Phi The compilation of Lustre with Intel OFED for Xeon Phi failed because of missing include of pci-dma.h header file. In Linux kernel includes this file included automatically from pci.h but in Intel Xeon Phi headers it's not true. So, just add this include explicitly. Signed-off-by: Dmitry Eremin Change-Id: I086fa38f1aca4dd6e14b093f6f02ab4e3bcd347c Reviewed-on: http://review.whamcloud.com/7115 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Liang Zhen Reviewed-by: Doug Oucharek Reviewed-by: Oleg Drokin --- lnet/klnds/o2iblnd/o2iblnd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index 1c92fee..77eac81 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.h +++ b/lnet/klnds/o2iblnd/o2iblnd.h @@ -38,6 +38,7 @@ * Author: Eric Barton */ +#include #include #include #include @@ -58,6 +59,9 @@ #include #include #include +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,32) +#include +#endif #include #include -- 1.8.3.1