]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
splat: Cleanup headers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Nov 2012 22:29:44 +0000 (15:29 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Nov 2012 22:48:56 +0000 (14:48 -0800)
Restructure the the SPLAT headers such that each test only
includes the minimal set of headers it requires.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
20 files changed:
include/sys/kmem.h
include/sys/types.h
module/splat/splat-atomic.c
module/splat/splat-condvar.c
module/splat/splat-cred.c
module/splat/splat-ctl.c
module/splat/splat-generic.c
module/splat/splat-internal.h
module/splat/splat-kmem.c
module/splat/splat-kobj.c
module/splat/splat-linux.c
module/splat/splat-list.c
module/splat/splat-mutex.c
module/splat/splat-random.c
module/splat/splat-rwlock.c
module/splat/splat-taskq.c
module/splat/splat-thread.c
module/splat/splat-time.c
module/splat/splat-vnode.c
module/splat/splat-zlib.c

index 0149e754c33c7ac7031e4f29afb8fd4fba4b550a..e71a443a09eb82f8d6b51ec13c6ce6dfa0a67b77 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
-#include <linux/mm_compat.h>
 #include <linux/spinlock.h>
 #include <linux/rwsem.h>
 #include <linux/hash.h>
index 0c3d88ec375ebd4243db500cad59eb95ec299165..35905eb9736b69004b752e71070e2978ca405162 100644 (file)
@@ -42,6 +42,8 @@
 #include <linux/proc_compat.h>
 #include <linux/math64_compat.h>
 #include <linux/zlib_compat.h>
+#include <linux/mm_compat.h>
+#include <linux/delay.h>
 
 #ifndef HAVE_UINTPTR_T
 typedef unsigned long                  uintptr_t;
index 6162d6abfe404c2e8e101f1be93d23e7ebee8695..cdb3353f9cddaae2622d3aa30b2714a06c515402 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Atomic Tests.
 \*****************************************************************************/
 
+#include <sys/atomic.h>
+#include <sys/thread.h>
 #include "splat-internal.h"
 
 #define SPLAT_ATOMIC_NAME              "atomic"
index 14000adbd94268f315b3487509eec99ce78a349d..69fefc95578461585fdbe3d5a2ab3f8d12ac9f21 100644 (file)
@@ -24,6 +24,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Condition Variable Tests.
 \*****************************************************************************/
 
+#include <sys/condvar.h>
 #include "splat-internal.h"
 
 #define SPLAT_CONDVAR_NAME             "condvar"
index db36ece980f9594929ea3f4df671ae26ef61d30e..0efabd8541292aa5d74fe568ff9afa6674ce53ab 100644 (file)
@@ -24,6 +24,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Credential Tests.
 \*****************************************************************************/
 
+#include <sys/cred.h>
 #include "splat-internal.h"
 
 #define SPLAT_CRED_NAME                        "cred"
index 399b09c4d328ed5cdacf79d6c9d103411a3c4259..53bf51dd629c57af9db66896a81436753d1ae833 100644 (file)
  *  of regression tests or particular tests.
 \*****************************************************************************/
 
+#include <linux/module.h>
+#include <linux/slab.h>
+#include <linux/vmalloc.h>
+#include <linux/cdev.h>
+#include <linux/fs.h>
+#include <linux/uaccess.h>
+#include <sys/types.h>
+#include <sys/debug.h>
 #include "splat-internal.h"
 
 static spl_class *splat_class;
index f9c3c7ec549e8e7ba2acf452392d9d7c3ad02301..38df14d3b174709b139b93dc489bf004d1aca52b 100644 (file)
@@ -24,6 +24,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Generic Tests.
 \*****************************************************************************/
 
+#include <sys/sunddi.h>
 #include "splat-internal.h"
 
 #define SPLAT_GENERIC_NAME             "generic"
index 501e42c32d14c3fe06a368a1d3b77e3cb1dd0ad5..b15db65e2fe072e6721f250a2829f1227666dd6d 100644 (file)
 #ifndef _SPLAT_INTERNAL_H
 #define _SPLAT_INTERNAL_H
 
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/string.h>
-#include <linux/errno.h>
-#include <linux/slab.h>
-#include <linux/sched.h>
-#include <linux/elf.h>
-#include <linux/limits.h>
-#include <linux/version.h>
-#include <linux/vmalloc.h>
-#include <linux/module.h>
-#include <linux/device.h>
-#include <linux/list.h>
-#include <linux/swap.h>
-#include <linux/delay.h>
-
-#include <asm/ioctls.h>
-#include <asm/uaccess.h>
-#include <stdarg.h>
-
-#include <sys/callb.h>
-#include <sys/condvar.h>
-#include <sys/cred.h>
-#include <sys/sysmacros.h>
-#include <sys/kmem.h>
-#include <sys/kstat.h>
-#include <sys/mutex.h>
-#include <sys/random.h>
-#include <sys/rwlock.h>
-#include <sys/taskq.h>
-#include <sys/thread.h>
-#include <sys/time.h>
-#include <sys/timer.h>
-#include <sys/types.h>
-#include <sys/kobj.h>
-#include <sys/atomic.h>
-#include <sys/list.h>
-#include <sys/sunddi.h>
-#include <sys/zmod.h>
-#include <linux/cdev.h>
-
 #include "spl-device.h"
 #include "spl-debug.h"
 #include "splat-ctl.h"
index d0ad9a6664deabfc90b4020f538de9a2b47403d0..f1c4613fad07709e37bf8b4c86bbe315878878ba 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Kmem Tests.
 \*****************************************************************************/
 
+#include <sys/kmem.h>
+#include <sys/thread.h>
 #include "splat-internal.h"
 
 #define SPLAT_KMEM_NAME                        "kmem"
index f0720dbf551064791d8369a6b8e730331746ccbc..c76795418258d7e483f6d57b52471b658ac7cc43 100644 (file)
@@ -24,6 +24,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Kobj Tests.
 \*****************************************************************************/
 
+#include <sys/kobj.h>
 #include "splat-internal.h"
 
 #define SPLAT_KOBJ_NAME                        "kobj"
index 07126411ab7486c9e9ce99d61775cdf03aab5bb9..5303df4e034d9d8e13bd79e156d5489a23fe0be0 100644 (file)
@@ -23,6 +23,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Kernel Compatibility Tests.
 \*****************************************************************************/
 
+#include <sys/kmem.h>
 #include "splat-internal.h"
 
 #define SPLAT_LINUX_NAME               "linux"
index d517e7d226ab904d9cec0a3e2aba0679f6ec8f6c..34b570f393b830559d5139d5c3a2a6cb746b9470 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) List Tests.
 \*****************************************************************************/
 
+#include <sys/list.h>
+#include <sys/kmem.h>
 #include "splat-internal.h"
 
 #define SPLAT_LIST_NAME                        "list"
index d134e49ced5944fc6f8e808e78b1882a2250ab69..9e6b24708e15b00711624d9b93e7acedff1df386 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Mutex Tests.
 \*****************************************************************************/
 
+#include <sys/mutex.h>
+#include <sys/taskq.h>
 #include "splat-internal.h"
 
 #define SPLAT_MUTEX_NAME                "mutex"
index 3ee580df785e1a5654db1ed1d94121304340d18d..63d96444f681572669e0aa5a7e87701197aa3698 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Random Number Generator Tests.
 \*****************************************************************************/
 
+#include <sys/random.h>
+#include <sys/kmem.h>
 #include "splat-internal.h"
 
 #define SPLAT_KRNG_NAME                        "krng"
index 2b9dee939e79c2f2cf1b30d8447c7f994d6c04b0..9e335d75658e7480c5ecbea8c7a8747dcecfa695 100644 (file)
@@ -24,6 +24,9 @@
  *  Solaris Porting LAyer Tests (SPLAT) Read/Writer Lock Tests.
 \*****************************************************************************/
 
+#include <sys/rwlock.h>
+#include <sys/taskq.h>
+#include <sys/random.h>
 #include "splat-internal.h"
 
 #define SPLAT_RWLOCK_NAME              "rwlock"
index 73142f9b65075cd407052a6c72ba69cbbba6b70b..38b563cc11f62ec6174b9870d209355cb4bd2099 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Task Queue Tests.
 \*****************************************************************************/
 
+#include <sys/taskq.h>
+#include <sys/kmem.h>
 #include "splat-internal.h"
 
 #define SPLAT_TASKQ_NAME               "taskq"
index 0f504836fe36a0866bc446ff914e4a48dca7ec07..c54cbcd8ac967d6ae441216e281e1ea3229b1b29 100644 (file)
@@ -24,6 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Thread Tests.
 \*****************************************************************************/
 
+#include <sys/thread.h>
+#include <sys/random.h>
 #include "splat-internal.h"
 
 #define SPLAT_THREAD_NAME              "thread"
index 3b06b9ef2a0c4a93e399c4a2f4754dfd88bde74c..e6f8dc682d9d206bb850344090f96d97a620ce47 100644 (file)
@@ -24,6 +24,7 @@
  *  Solaris Porting LAyer Tests (SPLAT) Time Tests.
 \*****************************************************************************/
 
+#include <sys/time.h>
 #include "splat-internal.h"
 
 #define SPLAT_TIME_NAME                        "time"
index a57edf0def5ed005d1e4e1b638966f0ebfb4a918..7d1c75f17994d37555942d1198f0faa754de891a 100644 (file)
@@ -24,8 +24,8 @@
  *  Solaris Porting LAyer Tests (SPLAT) Vnode Tests.
 \*****************************************************************************/
 
+#include <sys/vnode.h>
 #include "splat-internal.h"
-#include <linux/rcupdate.h>
 
 #define SPLAT_VNODE_NAME               "vnode"
 #define SPLAT_VNODE_DESC               "Kernel Vnode Tests"
index 465d340917843e6b49a8ff29b7f483556e502424..852cf818fb35cad8def4923002d067e4e7d523bc 100644 (file)
@@ -24,6 +24,9 @@
  *  Solaris Porting LAyer Tests (SPLAT) Zlib Compression Tests.
 \*****************************************************************************/
 
+#include <sys/zmod.h>
+#include <sys/random.h>
+#include <sys/kmem.h>
 #include "splat-internal.h"
 
 #define SPLAT_ZLIB_NAME                        "zlib"