staging: lustre: remove libcfs_all.h from remaining .h files.
authorNeilBrown <neilb@suse.com>
Mon, 21 May 2018 04:35:13 +0000 (14:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:36:18 +0000 (18:36 +0200)
Now no *.h files include libcfs_all.h - only *.c files.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
drivers/staging/lustre/lustre/fid/fid_internal.h
drivers/staging/lustre/lustre/fld/fld_internal.h
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/range_lock.c
drivers/staging/lustre/lustre/llite/range_lock.h
drivers/staging/lustre/lustre/llite/vvp_dev.c
drivers/staging/lustre/lustre/lov/lov_cl_internal.h
drivers/staging/lustre/lustre/mgc/mgc_internal.h
drivers/staging/lustre/lustre/mgc/mgc_request.c
drivers/staging/lustre/lustre/osc/osc_cl_internal.h

index 0506f1d457572f3446269a7655facbc1639cbfef..be315958a4b308c42d0b58fe8b1edff4e35fc627 100644 (file)
@@ -40,6 +40,9 @@
 #define __LIBCFS_HASH_H__
 
 #include <linux/hash.h>
+#include <linux/spinlock.h>
+#include <linux/workqueue.h>
+#include <linux/libcfs/libcfs.h>
 
 /*
  * Knuth recommends primes in approximately golden ratio to the maximum
index 3d0003b2fb4b238ae33841b01d4ff7d05e25a71c..14569e969a314a930a780a24e040d2a7957e7b59 100644 (file)
@@ -38,7 +38,6 @@
 #define __FID_INTERNAL_H
 
 #include <uapi/linux/lustre/lustre_idl.h>
-#include <linux/libcfs/libcfs_all.h>
 
 /* Functions used internally in module. */
 
index 9485c3d31559c63ae0c95fe22b6f64f502d8620a..e1d6aaa5c2b4cf695bad3ce7490a0d64fba68847 100644 (file)
@@ -59,7 +59,6 @@
 
 #include <uapi/linux/lustre/lustre_idl.h>
 
-#include <linux/libcfs/libcfs_all.h>
 #include <lustre_req_layout.h>
 #include <lustre_fld.h>
 
index 545a47fd78c12c3ec8414e071e924b07effdb8c3..1bc0782feae38cb095355986585bfbb63f15138f 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/statfs.h>
 #include <linux/types.h>
 #include <linux/mm.h>
+#include <linux/random.h>
 
 #include <uapi/linux/lustre/lustre_ioctl.h>
 #include <lustre_ha.h>
index cc9565f6bfe2002cbb32b30544e10925eb677bea..008a8874118d29e990e3e2fc521c1df647dcdb7b 100644 (file)
@@ -36,6 +36,7 @@
  */
 #include "range_lock.h"
 #include <uapi/linux/lustre/lustre_idl.h>
+#include <linux/libcfs/libcfs.h>
 
 /**
  * Initialize a range lock tree
index 4af8781c71d7ddd2236df7b8dcaabe2263ecf7fa..9ebac09160f2cc76317a72c7bf65f6c83d6cd2e4 100644 (file)
@@ -37,7 +37,7 @@
 #ifndef _RANGE_LOCK_H
 #define _RANGE_LOCK_H
 
-#include <linux/libcfs/libcfs_all.h>
+#include <linux/spinlock.h>
 #include <interval_tree.h>
 
 struct range_lock {
index 8bda51fd97a2e5d4d8f226159869c9d29139907e..31dc3c0ade01172fae2ce6c24a937e586aed900d 100644 (file)
@@ -38,6 +38,7 @@
 
 #define DEBUG_SUBSYSTEM S_LLITE
 
+#include <linux/libcfs/libcfs_hash.h>
 #include <obd.h>
 #include "llite_internal.h"
 #include "vvp_internal.h"
index d5849051319bb157eeefa6a0373e035e95fbb74f..e4f762137a4abf4d51d11c3482cc698a6b9bd815 100644 (file)
@@ -43,8 +43,6 @@
 #ifndef LOV_CL_INTERNAL_H
 #define LOV_CL_INTERNAL_H
 
-#include <linux/libcfs/libcfs_all.h>
-
 #include <obd.h>
 #include <cl_object.h>
 #include "lov_internal.h"
index e402898cb28ba47ce67c20fb7a44444c81825957..9541892b67c7560aa1321b37e4b876ea6c65ccaf 100644 (file)
@@ -34,7 +34,6 @@
 #ifndef _MGC_INTERNAL_H
 #define _MGC_INTERNAL_H
 
-#include <linux/libcfs/libcfs_all.h>
 #include <lustre_lib.h>
 #include <lustre_dlm.h>
 #include <lustre_log.h>
index 36c3f13ab9f493d6381019e57ce2d990352f9427..32df804614d3588a297dadab8a7ee67bdab5275d 100644 (file)
@@ -39,6 +39,7 @@
 #define D_MGC D_CONFIG /*|D_WARNING*/
 
 #include <linux/module.h>
+#include <linux/random.h>
 
 #include <lprocfs_status.h>
 #include <lustre_dlm.h>
index 29f31840332813a66a995baba77dbec182d4f3e9..2d3cba16ef345df1f250723bd22107683913b149 100644 (file)
@@ -43,8 +43,6 @@
 #ifndef OSC_CL_INTERNAL_H
 #define OSC_CL_INTERNAL_H
 
-#include <linux/libcfs/libcfs_all.h>
-
 #include <obd.h>
 /* osc_build_res_name() */
 #include <cl_object.h>