From: Dmitry Eremin Date: Thu, 25 Jul 2013 12:53:17 +0000 (+0400) Subject: LU-3637 lnet: build Lustre with Intel OFED for Xeon Phi X-Git-Tag: 2.4.91~39 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=4d107e91a5d5a7f50a46507dcb29a4610087158e 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 --- 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