staging: lustre: ksocklnd: add include path to Makefile
authorJames Simmons <jsimmons@infradead.org>
Sun, 20 Aug 2017 02:26:55 +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 ksocklnd 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/socklnd/Makefile
drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h

index c011581d345387a01d892d72bee0214333286e5e..a7da1abfc8042ca6ab8a387a93531778caafdd45 100644 (file)
@@ -1,3 +1,6 @@
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include
+
 obj-$(CONFIG_LNET) += ksocklnd.o
 
 ksocklnd-y := socklnd.o socklnd_cb.o socklnd_proto.o socklnd_modparams.o socklnd_lib.o
index 88afe0981a1f8a46e47bfadbb1bfeae178c6ea6a..e6428c4b7aec1a06cfe88994f9a188d65cf82f2e 100644 (file)
@@ -46,9 +46,9 @@
 #include <net/sock.h>
 #include <net/tcp.h>
 
-#include "../../../include/linux/libcfs/libcfs.h"
-#include "../../../include/linux/lnet/lib-lnet.h"
-#include "../../../include/linux/lnet/socklnd.h"
+#include <linux/libcfs/libcfs.h>
+#include <linux/lnet/lib-lnet.h>
+#include <linux/lnet/socklnd.h>
 
 /* assume one thread for each connection type */
 #define SOCKNAL_NSCHEDS                3