OK, I think this is the last of major cleanup and restructuring.

We've dropped all the linux- prefixes on the file in favor of spl-
which makes more sense.  And we've cleaned up some of the includes
so everybody should be including their own dependencies properly.
All a module which wants to use the spl support needs to do in
include spl.h and ensure it has access to Module.symvers.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@16 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo
2008-02-28 00:48:31 +00:00
parent 07d339d467
commit 596e65b4e8
23 changed files with 43 additions and 41 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
EXTRA_DIST = spl.h
EXTRA_DIST += spl-condvar.h spl-kmem.h spl-random.h spl-thread.h
EXTRA_DIST += spl-types.h spl-cred.h spl-kstat.h spl-rwlock.h
EXTRA_DIST += spl-time.h spl-callb.h spl-generic.h spl-mutex.h
EXTRA_DIST += spl-taskq.h spl-timer.h
EXTRA_DIST += splat-ctl.h
EXTRA_DIST += linux-condvar.h linux-kmem.h linux-random.h linux-thread.h
EXTRA_DIST += linux-types.h linux-cred.h linux-kstat.h linux-rwlock.h
EXTRA_DIST += linux-time.h linux-callb.h linux-generic.h linux-mutex.h
EXTRA_DIST += linux-taskq.h linux-timer.h
EXTRA_DIST += list.h
@@ -6,7 +6,7 @@ extern "C" {
#endif
#include <linux/module.h>
#include <linux-mutex.h>
#include "spl-mutex.h"
#define DEBUG_CALLB
@@ -6,7 +6,8 @@ extern "C" {
#endif
#include <linux/module.h>
#include <linux-types.h>
#include "spl-types.h"
#include "spl-time.h"
/* XXX - The minimum functionality here is stubbed out but nothing works. */
@@ -6,6 +6,7 @@ extern "C" {
#endif
#include <linux/module.h>
#include "spl-types.h"
/* See the "Big Theory Statement" in solaris mutex.c.
*
@@ -5,7 +5,7 @@
#include <linux/slab.h>
#include <linux/rwsem.h>
#include <asm/current.h>
#include <linux-types.h>
#include "spl-types.h"
#ifdef __cplusplus
extern "C" {
@@ -24,7 +24,7 @@ extern "C" {
#include <linux/gfp.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux-types.h>
#include "spl-types.h"
#undef DEBUG_TASKQ_UNIMPLEMENTED
@@ -8,8 +8,8 @@ extern "C" {
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux-types.h>
#include <linux-generic.h>
#include "spl-types.h"
#include "spl-generic.h"
/*
* Thread interfaces
+1 -1
View File
@@ -12,7 +12,7 @@ extern "C" {
#include <linux/module.h>
#include <linux/time.h>
#include <linux-types.h>
#include "spl-types.h"
extern unsigned long long monotonic_clock(void);
typedef struct timespec timestruc_t; /* definition per SVr4 */
+15
View File
@@ -1,4 +1,19 @@
#ifndef _SPL_H
#define _SPL_H
#include "spl-callb.h"
#include "spl-condvar.h"
#include "spl-cred.h"
#include "spl-generic.h"
#include "spl-kmem.h"
#include "spl-kstat.h"
#include "spl-mutex.h"
#include "spl-random.h"
#include "spl-rwlock.h"
#include "spl-taskq.h"
#include "spl-thread.h"
#include "spl-time.h"
#include "spl-timer.h"
#include "spl-types.h"
#endif /* _SPL_H */