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

staging: lustre: libcfs: add include path to Makefile

Rationalize include paths in the libcfs source code files.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95884b8a
subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include
subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include
obj-$(CONFIG_LNET) += libcfs.o obj-$(CONFIG_LNET) += libcfs.o
libcfs-linux-objs := linux-tracefile.o linux-debug.o libcfs-linux-objs := linux-tracefile.o linux-debug.o
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "tracefile.h" #include "tracefile.h"
static char debug_file_name[1024]; static char debug_file_name[1024];
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Lustre is a trademark of Oracle Corporation, Inc. * Lustre is a trademark of Oracle Corporation, Inc.
*/ */
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
unsigned long cfs_fail_loc; unsigned long cfs_fail_loc;
EXPORT_SYMBOL(cfs_fail_loc); EXPORT_SYMBOL(cfs_fail_loc);
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#if CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1 #if CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1
static unsigned int warn_on_depth = 8; static unsigned int warn_on_depth = 8;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/** Global CPU partition table */ /** Global CPU partition table */
struct cfs_cpt_table *cfs_cpt_table __read_mostly; struct cfs_cpt_table *cfs_cpt_table __read_mostly;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/** destroy cpu-partition lock, see libcfs_private.h for more detail */ /** destroy cpu-partition lock, see libcfs_private.h for more detail */
void void
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
struct cfs_var_array { struct cfs_var_array {
unsigned int va_count; /* # of buffers */ unsigned int va_count; /* # of buffers */
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* Author: Nathan Rutman <nathan.rutman@sun.com> * Author: Nathan Rutman <nathan.rutman@sun.com>
*/ */
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/* Convert a text string to a bitmask */ /* Convert a text string to a bitmask */
int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), int cfs_str2mask(const char *str, const char *(*bit2str)(int bit),
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/sched.h> #include <linux/sched.h>
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#include <crypto/hash.h> #include <crypto/hash.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "../../../include/linux/libcfs/libcfs_crypto.h" #include <linux/libcfs/libcfs_crypto.h>
#include "linux-crypto.h" #include "linux-crypto.h"
/** /**
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/* /*
* Implementation of cfs_curproc API (see portals/include/libcfs/curproc.h) * Implementation of cfs_curproc API (see portals/include/libcfs/curproc.h)
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "../tracefile.h" #include "../tracefile.h"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
void *libcfs_kvzalloc(size_t size, gfp_t flags) void *libcfs_kvzalloc(size_t size, gfp_t flags)
{ {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#define LNET_MINOR 240 #define LNET_MINOR 240
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <linux/fs_struct.h> #include <linux/fs_struct.h>
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#if defined(CONFIG_KGDB) #if defined(CONFIG_KGDB)
#include <linux/kgdb.h> #include <linux/kgdb.h>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#define LUSTRE_TRACEFILE_PRIVATE #define LUSTRE_TRACEFILE_PRIVATE
#include "../../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include "../tracefile.h" #include "../tracefile.h"
/* percents to share the total debug memory for each type */ /* percents to share the total debug memory for each type */
......
...@@ -50,12 +50,12 @@ ...@@ -50,12 +50,12 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#include <asm/div64.h> #include <asm/div64.h>
#include "../../include/linux/libcfs/libcfs_crypto.h" #include <linux/libcfs/libcfs_crypto.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>
#include "tracefile.h" #include "tracefile.h"
static struct dentry *lnet_debugfs_root; static struct dentry *lnet_debugfs_root;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
* algorithm recommended by Marsaglia * algorithm recommended by Marsaglia
*/ */
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/* /*
* From: George Marsaglia <geo@stat.fsu.edu> * From: George Marsaglia <geo@stat.fsu.edu>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define pr_fmt(fmt) "Lustre: " fmt #define pr_fmt(fmt) "Lustre: " fmt
#include "tracefile.h" #include "tracefile.h"
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
/* XXX move things up to the top, comment */ /* XXX move things up to the top, comment */
union cfs_trace_data_union (*cfs_trace_data[TCD_MAX_TYPES])[NR_CPUS] __cacheline_aligned; union cfs_trace_data_union (*cfs_trace_data[TCD_MAX_TYPES])[NR_CPUS] __cacheline_aligned;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#ifndef __LIBCFS_TRACEFILE_H__ #ifndef __LIBCFS_TRACEFILE_H__
#define __LIBCFS_TRACEFILE_H__ #define __LIBCFS_TRACEFILE_H__
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
enum cfs_trace_buf_type { enum cfs_trace_buf_type {
CFS_TCD_TYPE_PROC = 0, CFS_TCD_TYPE_PROC = 0,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include "../../include/linux/libcfs/libcfs.h" #include <linux/libcfs/libcfs.h>
#define CFS_WS_NAME_LEN 16 #define CFS_WS_NAME_LEN 16
......
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