Commit 709b4c54 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: lnet: add include path to Makefile

Rationalize include paths in the lnet core source code files.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a33e20b6
subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include
subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include
obj-$(CONFIG_LNET) += lnet.o obj-$(CONFIG_LNET) += lnet.o
lnet-y := api-ni.o config.o nidstrings.o net_fault.o \ lnet-y := api-ni.o config.o nidstrings.o net_fault.o \
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/completion.h> #include <linux/completion.h>
#include <net/sock.h> #include <net/sock.h>
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
static int accept_port = 988; static int accept_port = 988;
static int accept_backlog = 127; static int accept_backlog = 127;
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/ktime.h> #include <linux/ktime.h>
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
#include "../../include/uapi/linux/lnet/lnet-dlc.h" #include <uapi/linux/lnet/lnet-dlc.h>
#define D_LNI D_CONSOLE #define D_LNI D_CONSOLE
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/nsproxy.h> #include <linux/nsproxy.h>
#include <net/net_namespace.h> #include <net/net_namespace.h>
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
struct lnet_text_buf { /* tmp struct for parsing routes */ struct lnet_text_buf { /* tmp struct for parsing routes */
struct list_head ltb_list; /* stash on lists */ struct list_head ltb_list; /* stash on lists */
......
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
*/ */
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h"
#include <linux/lnet/lib-lnet.h>
/** /**
* Create an event queue that has room for \a count number of events. * Create an event queue that has room for \a count number of events.
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
/* must be called with lnet_res_lock held */ /* must be called with lnet_res_lock held */
void void
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
/** /**
* Create and attach a match entry to the match list of \a portal. The new * Create and attach a match entry to the match list of \a portal. The new
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
#include <linux/nsproxy.h> #include <linux/nsproxy.h>
#include <net/net_namespace.h> #include <net/net_namespace.h>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
void void
lnet_build_unlink_event(struct lnet_libmd *md, struct lnet_event *ev) lnet_build_unlink_event(struct lnet_libmd *md, struct lnet_event *ev)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
/* NB: add /proc interfaces in upcoming patches */ /* NB: add /proc interfaces in upcoming patches */
int portal_rotor = LNET_PTL_ROTOR_HASH_RT; int portal_rotor = LNET_PTL_ROTOR_HASH_RT;
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <net/sock.h> #include <net/sock.h>
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
static int static int
kernel_sock_unlocked_ioctl(struct file *filp, int cmd, unsigned long arg) kernel_sock_unlocked_ioctl(struct file *filp, int cmd, unsigned long arg)
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
*/ */
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h"
#include <linux/lnet/lib-lnet.h>
static int static int
lolnd_send(struct lnet_ni *ni, void *private, struct lnet_msg *lntmsg) lolnd_send(struct lnet_ni *ni, void *private, struct lnet_msg *lntmsg)
......
...@@ -31,8 +31,9 @@ ...@@ -31,8 +31,9 @@
*/ */
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h"
#include "../../include/uapi/linux/lnet/lnet-dlc.h" #include <linux/lnet/lib-lnet.h>
#include <uapi/linux/lnet/lnet-dlc.h>
static int config_on_load; static int config_on_load;
module_param(config_on_load, int, 0444); module_param(config_on_load, int, 0444);
......
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
#include "../../include/uapi/linux/lnet/lnetctl.h" #include <uapi/linux/lnet/lnetctl.h>
#define LNET_MSG_MASK (LNET_PUT_BIT | LNET_ACK_BIT | \ #define LNET_MSG_MASK (LNET_PUT_BIT | LNET_ACK_BIT | \
LNET_GET_BIT | LNET_REPLY_BIT) LNET_GET_BIT | LNET_REPLY_BIT)
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "../../include/uapi/linux/lnet/nidstr.h" #include <uapi/linux/lnet/nidstr.h>
/* max value for numeric network address */ /* max value for numeric network address */
#define MAX_NUMERIC_VALUE 0xffffffff #define MAX_NUMERIC_VALUE 0xffffffff
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
#include "../../include/uapi/linux/lnet/lnet-dlc.h" #include <uapi/linux/lnet/lnet-dlc.h>
int int
lnet_peer_tables_create(void) lnet_peer_tables_create(void)
......
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
*/ */
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/completion.h> #include <linux/completion.h>
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/lnet/lib-lnet.h>
#define LNET_NRB_TINY_MIN 512 /* min value for each CPT */ #define LNET_NRB_TINY_MIN 512 /* min value for each CPT */
#define LNET_NRB_TINY (LNET_NRB_TINY_MIN * 4) #define LNET_NRB_TINY (LNET_NRB_TINY_MIN * 4)
......
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
*/ */
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h"
#include "../../include/linux/lnet/lib-lnet.h" #include <linux/libcfs/libcfs.h>
#include <linux/lnet/lib-lnet.h>
/* /*
* This is really lnet_proc.c. You might need to update sanity test 215 * This is really lnet_proc.c. You might need to update sanity test 215
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment