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 <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2012-11-02 15:29:44 -07:00
parent d2733258d0
commit df870a697f
20 changed files with 37 additions and 43 deletions

View 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>

View 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;

View 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"

View 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"

View 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"

View File

@ -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;

View 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"

View File

@ -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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"