Whamcloud - gitweb
LU-3637 lnet: build Lustre with Intel OFED for Xeon Phi 15/7115/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 25 Jul 2013 12:53:17 +0000 (16:53 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 12 Aug 2013 16:56:55 +0000 (16:56 +0000)
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 <dmitry.eremin@intel.com>
Change-Id: I086fa38f1aca4dd6e14b093f6f02ab4e3bcd347c
Reviewed-on: http://review.whamcloud.com/7115
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/o2iblnd/o2iblnd.h

index 1c92fee..77eac81 100644 (file)
@@ -38,6 +38,7 @@
  * Author: Eric Barton <eric@bartonsoftware.com>
  */
 
+#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
@@ -58,6 +59,9 @@
 #include <linux/kmod.h>
 #include <linux/sysctl.h>
 #include <linux/pci.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,32)
+#include <linux/pci-dma.h>
+#endif
 
 #include <net/sock.h>
 #include <linux/in.h>