Skip to content

Commit

Permalink
staging: lustre: obdclass: add include path to Makefile
Browse files Browse the repository at this point in the history
Rationalize include paths in the obdclass source code files.

Signed-off-by: James Simmons <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jamesasimmons authored and gregkh committed Aug 23, 2017
1 parent 7e270b3 commit e6f227e
Show file tree
Hide file tree
Showing 28 changed files with 112 additions and 109 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/lustre/lustre/obdclass/Makefile
Original file line number Diff line number Diff line change
@@ -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_LUSTRE_FS) += obdclass.o

obdclass-y := linux/linux-module.o linux/linux-sysctl.o \
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/lustre/lustre/obdclass/cl_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include "../include/lustre_fid.h"
#include <obd_class.h>
#include <obd_support.h>
#include <lustre_fid.h>
#include <linux/list.h>
#include <linux/sched.h>
#include "../include/cl_object.h"
#include <cl_object.h>
#include "cl_internal.h"

/*****************************************************************************
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/lustre/lustre/obdclass/cl_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include "../include/lustre_fid.h"
#include <obd_class.h>
#include <obd_support.h>
#include <lustre_fid.h>
#include <linux/list.h>
#include "../include/cl_object.h"
#include <cl_object.h>
#include "cl_internal.h"

static void cl_lock_trace0(int level, const struct lu_env *env,
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/obdclass/cl_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../../include/linux/libcfs/libcfs.h"
#include <linux/libcfs/libcfs.h>
/* class_put_type() */
#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include "../include/lustre_fid.h"
#include <obd_class.h>
#include <obd_support.h>
#include <lustre_fid.h>
#include <linux/list.h>
#include "../../include/linux/libcfs/libcfs_hash.h" /* for cfs_hash stuff */
#include "../include/cl_object.h"
#include "../include/lu_object.h"
#include <linux/libcfs/libcfs_hash.h> /* for cfs_hash stuff */
#include <cl_object.h>
#include <lu_object.h>
#include "cl_internal.h"

static struct kmem_cache *cl_env_kmem;
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/lustre/lustre/obdclass/cl_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../../include/linux/libcfs/libcfs.h"
#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include <linux/libcfs/libcfs.h>
#include <obd_class.h>
#include <obd_support.h>
#include <linux/list.h>

#include "../include/cl_object.h"
#include <cl_object.h>
#include "cl_internal.h"

static void cl_page_delete0(const struct lu_env *env, struct cl_page *pg);
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/obdclass/class_obd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
#define DEBUG_SUBSYSTEM S_CLASS
# include <linux/atomic.h>

#include "../include/obd_support.h"
#include "../include/obd_class.h"
#include "../../include/uapi/linux/lnet/lnetctl.h"
#include "../include/lustre_debug.h"
#include "../include/lprocfs_status.h"
#include <obd_support.h>
#include <obd_class.h>
#include <uapi/linux/lnet/lnetctl.h>
#include <lustre_debug.h>
#include <lprocfs_status.h>
#include <linux/list.h>
#include "../include/cl_object.h"
#include "../../include/uapi/linux/lustre/lustre_ioctl.h"
#include <cl_object.h>
#include <uapi/linux/lustre/lustre_ioctl.h>
#include "llog_internal.h"

struct obd_device *obd_devs[MAX_OBD_DEVICES];
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

#include <asm/unaligned.h>

#include "../include/obd_support.h"
#include "../include/lustre_debug.h"
#include "../include/lustre_net.h"
#include <obd_support.h>
#include <lustre_debug.h>
#include <lustre_net.h>

#define LPDS sizeof(__u64)
int block_debug_setup(void *addr, int len, __u64 off, __u64 id)
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/genops.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
*/

#define DEBUG_SUBSYSTEM S_CLASS
#include "../include/obd_class.h"
#include "../include/lprocfs_status.h"
#include "../include/lustre_kernelcomm.h"
#include <obd_class.h>
#include <lprocfs_status.h>
#include <lustre_kernelcomm.h>

spinlock_t obd_types_lock;

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/obdclass/kernelcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#define DEBUG_SUBSYSTEM S_CLASS
#define D_KUC D_OTHER

#include "../include/obd_support.h"
#include "../include/lustre_kernelcomm.h"
#include <obd_support.h>
#include <lustre_kernelcomm.h>

/**
* libcfs_kkuc_msg_put - send an message from kernel to userspace
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/linkea.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
* Author: Di Wang <[email protected]>
*/

#include "../../include/uapi/linux/lustre/lustre_idl.h"
#include "../include/obd.h"
#include "../include/lustre_linkea.h"
#include <uapi/linux/lustre/lustre_idl.h>
#include <obd.h>
#include <lustre_linkea.h>

int linkea_data_new(struct linkea_data *ldata, struct lu_buf *buf)
{
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
#include <linux/seq_file.h>
#include <linux/kobject.h>

#include "../../../include/linux/libcfs/libcfs.h"
#include "../../../include/uapi/linux/lnet/lnetctl.h"
#include "../../include/obd_support.h"
#include "../../include/obd_class.h"
#include "../../include/lprocfs_status.h"
#include "../../../include/uapi/linux/lustre/lustre_ioctl.h"
#include "../../../include/uapi/linux/lustre/lustre_ver.h"
#include <linux/libcfs/libcfs.h>
#include <uapi/linux/lnet/lnetctl.h>
#include <obd_support.h>
#include <obd_class.h>
#include <lprocfs_status.h>
#include <uapi/linux/lustre/lustre_ioctl.h>
#include <uapi/linux/lustre/lustre_ver.h>

#define OBD_MAX_IOCTL_BUFFER 8192

Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../../include/obd_support.h"
#include "../../include/lprocfs_status.h"
#include "../../include/obd_class.h"
#include <obd_support.h>
#include <lprocfs_status.h>
#include <obd_class.h>

struct static_lustre_uintvalue_attr {
struct {
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/llog.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@

#define DEBUG_SUBSYSTEM S_LOG

#include "../include/llog_swab.h"
#include "../include/lustre_log.h"
#include "../include/obd_class.h"
#include <llog_swab.h>
#include <lustre_log.h>
#include <obd_class.h>
#include "llog_internal.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lustre/obdclass/llog_cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define DEBUG_SUBSYSTEM S_LOG

#include "../include/obd_class.h"
#include <obd_class.h>

#include "llog_internal.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lustre/obdclass/llog_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#ifndef __LLOG_INTERNAL_H__
#define __LLOG_INTERNAL_H__

#include "../include/lustre_log.h"
#include <lustre_log.h>

struct llog_process_info {
struct llog_handle *lpi_loghandle;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/obdclass/llog_obd.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

#define DEBUG_SUBSYSTEM S_LOG

#include "../include/obd_class.h"
#include "../include/lustre_log.h"
#include <obd_class.h>
#include <lustre_log.h>
#include "llog_internal.h"

/* helper functions for calling the llog obd methods */
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/obdclass/llog_swab.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

#define DEBUG_SUBSYSTEM S_LOG

#include "../include/llog_swab.h"
#include "../include/lustre_log.h"
#include <llog_swab.h>
#include <lustre_log.h>

static void print_llogd_body(struct llogd_body *d)
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/obdclass/lprocfs_counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
*/

#include <linux/module.h>
#include "../include/lprocfs_status.h"
#include "../include/obd_support.h"
#include <lprocfs_status.h>
#include <obd_support.h>

void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount)
{
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../include/obd_class.h"
#include "../include/lprocfs_status.h"
#include "../../include/uapi/linux/lustre/lustre_idl.h"
#include <obd_class.h>
#include <lprocfs_status.h>
#include <uapi/linux/lustre/lustre_idl.h>
#include <linux/seq_file.h>
#include <linux/ctype.h>

Expand Down
20 changes: 10 additions & 10 deletions drivers/staging/lustre/lustre/obdclass/lu_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../../include/linux/libcfs/libcfs.h"
#include <linux/libcfs/libcfs.h>

# include <linux/module.h>
#include <linux/module.h>

/* hash_long() */
#include "../../include/linux/libcfs/libcfs_hash.h"
#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include "../include/lustre_disk.h"
#include "../include/lustre_fid.h"
#include "../include/lu_object.h"
#include "../include/cl_object.h"
#include "../include/lu_ref.h"
#include <linux/libcfs/libcfs_hash.h>
#include <obd_class.h>
#include <obd_support.h>
#include <lustre_disk.h>
#include <lustre_fid.h>
#include <lu_object.h>
#include <cl_object.h>
#include <lu_ref.h>
#include <linux/list.h>

enum {
Expand Down
10 changes: 5 additions & 5 deletions drivers/staging/lustre/lustre/obdclass/lu_ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../../include/linux/libcfs/libcfs.h"
#include <linux/libcfs/libcfs.h>

#include "../include/obd.h"
#include "../include/obd_class.h"
#include "../include/obd_support.h"
#include "../include/lu_ref.h"
#include <obd.h>
#include <obd_class.h>
#include <obd_support.h>
#include <lu_ref.h>
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/lustre_handles.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../include/obd_support.h"
#include "../include/lustre_handles.h"
#include "../include/lustre_lib.h"
#include <obd_support.h>
#include <lustre_handles.h>
#include <lustre_lib.h>

static __u64 handle_base;
#define HANDLE_INCR 7
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/obdclass/lustre_peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

#define DEBUG_SUBSYSTEM S_RPC

#include "../include/obd.h"
#include "../include/obd_support.h"
#include "../include/obd_class.h"
#include "../include/lustre_lib.h"
#include "../include/lustre_ha.h"
#include "../include/lustre_net.h"
#include "../include/lprocfs_status.h"
#include <obd.h>
#include <obd_support.h>
#include <obd_class.h>
#include <lustre_lib.h>
#include <lustre_ha.h>
#include <lustre_net.h>
#include <lprocfs_status.h>

#define NIDS_MAX 32

Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/lustre/lustre/obdclass/obd_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

#include <linux/string.h>

#include "../../include/uapi/linux/lustre/lustre_ioctl.h"
#include "../include/llog_swab.h"
#include "../include/lprocfs_status.h"
#include "../include/lustre_log.h"
#include "../../include/uapi/linux/lustre/lustre_param.h"
#include "../include/obd_class.h"
#include <uapi/linux/lustre/lustre_ioctl.h>
#include <llog_swab.h>
#include <lprocfs_status.h>
#include <lustre_log.h>
#include <uapi/linux/lustre/lustre_param.h>
#include <obd_class.h>

#include "llog_internal.h"

Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/obdclass/obd_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
#define D_MOUNT (D_SUPER | D_CONFIG/*|D_WARNING */)
#define PRINT_CMD CDEBUG

#include "../include/obd.h"
#include "../include/lustre_compat.h"
#include "../include/obd_class.h"
#include "../../include/uapi/linux/lustre/lustre_idl.h"
#include "../include/lustre_log.h"
#include "../include/lustre_disk.h"
#include "../../include/uapi/linux/lustre/lustre_param.h"
#include <obd.h>
#include <lustre_compat.h>
#include <obd_class.h>
#include <uapi/linux/lustre/lustre_idl.h>
#include <lustre_log.h>
#include <lustre_disk.h>
#include <uapi/linux/lustre/lustre_param.h>

static int (*client_fill_super)(struct super_block *sb,
struct vfsmount *mnt);
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lustre/obdclass/obdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

#define DEBUG_SUBSYSTEM S_CLASS

#include "../include/obd_class.h"
#include "../../include/uapi/linux/lustre/lustre_idl.h"
#include "../include/lustre_obdo.h"
#include <obd_class.h>
#include <uapi/linux/lustre/lustre_idl.h>
#include <lustre_obdo.h>

void obdo_set_parent_fid(struct obdo *dst, const struct lu_fid *parent)
{
Expand Down
Loading

0 comments on commit e6f227e

Please sign in to comment.