staging: lustre: ko2iblnd: add include path to Makefile
authorJames Simmons <jsimmons@infradead.org>
Sun, 20 Aug 2017 02:26:54 +0000 (22:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 01:36:52 +0000 (18:36 -0700)
Rationalize include paths in the ko2iblnd source code files.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/Makefile
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h

index e0a7aa72b7d512a4249e435e1a142b4cef569e66..4affe1d799487f014b65d62ad8ad63860f3e085f 100644 (file)
@@ -1,2 +1,5 @@
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include
+
 obj-$(CONFIG_LNET_XPRT_IB) += ko2iblnd.o
 ko2iblnd-y := o2iblnd.o o2iblnd_cb.o o2iblnd_modparams.o
index 8e595060f1aef9ddba9b9d371e241fd02de700ce..a1e994a1cc84eab4fe1fd63c9fb4583147748eb5 100644 (file)
@@ -63,8 +63,8 @@
 
 #define DEBUG_SUBSYSTEM S_LND
 
-#include "../../../include/linux/libcfs/libcfs.h"
-#include "../../../include/linux/lnet/lib-lnet.h"
+#include <linux/libcfs/libcfs.h>
+#include <linux/lnet/lib-lnet.h>
 
 #define IBLND_PEER_HASH_SIZE           101     /* # peer lists */
 /* # scheduler loops before reschedule */