diff options
author | Brian Behlendorf <[email protected]> | 2012-11-02 15:29:44 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-11-06 14:48:56 -0800 |
commit | df870a697fc8669d63534b27a108335269a7884f (patch) | |
tree | 18b4965b6a407de433035af8cc0d7856b0acfcb9 /module | |
parent | d2733258d09b02fac76af0df9921e369d33e9642 (diff) |
splat: Cleanup headers
Restructure the the SPLAT headers such that each test only
includes the minimal set of headers it requires.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r-- | module/splat/splat-atomic.c | 2 | ||||
-rw-r--r-- | module/splat/splat-condvar.c | 1 | ||||
-rw-r--r-- | module/splat/splat-cred.c | 1 | ||||
-rw-r--r-- | module/splat/splat-ctl.c | 8 | ||||
-rw-r--r-- | module/splat/splat-generic.c | 1 | ||||
-rw-r--r-- | module/splat/splat-internal.h | 41 | ||||
-rw-r--r-- | module/splat/splat-kmem.c | 2 | ||||
-rw-r--r-- | module/splat/splat-kobj.c | 1 | ||||
-rw-r--r-- | module/splat/splat-linux.c | 1 | ||||
-rw-r--r-- | module/splat/splat-list.c | 2 | ||||
-rw-r--r-- | module/splat/splat-mutex.c | 2 | ||||
-rw-r--r-- | module/splat/splat-random.c | 2 | ||||
-rw-r--r-- | module/splat/splat-rwlock.c | 3 | ||||
-rw-r--r-- | module/splat/splat-taskq.c | 2 | ||||
-rw-r--r-- | module/splat/splat-thread.c | 2 | ||||
-rw-r--r-- | module/splat/splat-time.c | 1 | ||||
-rw-r--r-- | module/splat/splat-vnode.c | 2 | ||||
-rw-r--r-- | module/splat/splat-zlib.c | 3 |
18 files changed, 35 insertions, 42 deletions
diff --git a/module/splat/splat-atomic.c b/module/splat/splat-atomic.c index 6162d6abf..cdb3353f9 100644 --- a/module/splat/splat-atomic.c +++ b/module/splat/splat-atomic.c @@ -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" diff --git a/module/splat/splat-condvar.c b/module/splat/splat-condvar.c index 14000adbd..69fefc955 100644 --- a/module/splat/splat-condvar.c +++ b/module/splat/splat-condvar.c @@ -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" diff --git a/module/splat/splat-cred.c b/module/splat/splat-cred.c index db36ece98..0efabd854 100644 --- a/module/splat/splat-cred.c +++ b/module/splat/splat-cred.c @@ -24,6 +24,7 @@ * Solaris Porting LAyer Tests (SPLAT) Credential Tests. \*****************************************************************************/ +#include <sys/cred.h> #include "splat-internal.h" #define SPLAT_CRED_NAME "cred" diff --git a/module/splat/splat-ctl.c b/module/splat/splat-ctl.c index 399b09c4d..53bf51dd6 100644 --- a/module/splat/splat-ctl.c +++ b/module/splat/splat-ctl.c @@ -43,6 +43,14 @@ * 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; diff --git a/module/splat/splat-generic.c b/module/splat/splat-generic.c index f9c3c7ec5..38df14d3b 100644 --- a/module/splat/splat-generic.c +++ b/module/splat/splat-generic.c @@ -24,6 +24,7 @@ * Solaris Porting LAyer Tests (SPLAT) Generic Tests. \*****************************************************************************/ +#include <sys/sunddi.h> #include "splat-internal.h" #define SPLAT_GENERIC_NAME "generic" diff --git a/module/splat/splat-internal.h b/module/splat/splat-internal.h index 501e42c32..b15db65e2 100644 --- a/module/splat/splat-internal.h +++ b/module/splat/splat-internal.h @@ -25,47 +25,6 @@ #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" diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c index d0ad9a666..f1c4613fa 100644 --- a/module/splat/splat-kmem.c +++ b/module/splat/splat-kmem.c @@ -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" diff --git a/module/splat/splat-kobj.c b/module/splat/splat-kobj.c index f0720dbf5..c76795418 100644 --- a/module/splat/splat-kobj.c +++ b/module/splat/splat-kobj.c @@ -24,6 +24,7 @@ * Solaris Porting LAyer Tests (SPLAT) Kobj Tests. \*****************************************************************************/ +#include <sys/kobj.h> #include "splat-internal.h" #define SPLAT_KOBJ_NAME "kobj" diff --git a/module/splat/splat-linux.c b/module/splat/splat-linux.c index 07126411a..5303df4e0 100644 --- a/module/splat/splat-linux.c +++ b/module/splat/splat-linux.c @@ -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" diff --git a/module/splat/splat-list.c b/module/splat/splat-list.c index d517e7d22..34b570f39 100644 --- a/module/splat/splat-list.c +++ b/module/splat/splat-list.c @@ -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" diff --git a/module/splat/splat-mutex.c b/module/splat/splat-mutex.c index d134e49ce..9e6b24708 100644 --- a/module/splat/splat-mutex.c +++ b/module/splat/splat-mutex.c @@ -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" diff --git a/module/splat/splat-random.c b/module/splat/splat-random.c index 3ee580df7..63d96444f 100644 --- a/module/splat/splat-random.c +++ b/module/splat/splat-random.c @@ -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" diff --git a/module/splat/splat-rwlock.c b/module/splat/splat-rwlock.c index 2b9dee939..9e335d756 100644 --- a/module/splat/splat-rwlock.c +++ b/module/splat/splat-rwlock.c @@ -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" diff --git a/module/splat/splat-taskq.c b/module/splat/splat-taskq.c index 73142f9b6..38b563cc1 100644 --- a/module/splat/splat-taskq.c +++ b/module/splat/splat-taskq.c @@ -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" diff --git a/module/splat/splat-thread.c b/module/splat/splat-thread.c index 0f504836f..c54cbcd8a 100644 --- a/module/splat/splat-thread.c +++ b/module/splat/splat-thread.c @@ -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" diff --git a/module/splat/splat-time.c b/module/splat/splat-time.c index 3b06b9ef2..e6f8dc682 100644 --- a/module/splat/splat-time.c +++ b/module/splat/splat-time.c @@ -24,6 +24,7 @@ * Solaris Porting LAyer Tests (SPLAT) Time Tests. \*****************************************************************************/ +#include <sys/time.h> #include "splat-internal.h" #define SPLAT_TIME_NAME "time" diff --git a/module/splat/splat-vnode.c b/module/splat/splat-vnode.c index a57edf0de..7d1c75f17 100644 --- a/module/splat/splat-vnode.c +++ b/module/splat/splat-vnode.c @@ -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" diff --git a/module/splat/splat-zlib.c b/module/splat/splat-zlib.c index 465d34091..852cf818f 100644 --- a/module/splat/splat-zlib.c +++ b/module/splat/splat-zlib.c @@ -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" |