]> granicus.if.org Git - spl/commitdiff
OK, I think this is the last of major cleanup and restructuring.
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Thu, 28 Feb 2008 00:48:31 +0000 (00:48 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Thu, 28 Feb 2008 00:48:31 +0000 (00:48 +0000)
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

23 files changed:
include/Makefile.am
include/spl-callb.h [moved from include/linux-callb.h with 97% similarity]
include/spl-condvar.h [moved from include/linux-condvar.h with 100% similarity]
include/spl-cred.h [moved from include/linux-cred.h with 100% similarity]
include/spl-generic.h [moved from include/linux-generic.h with 100% similarity]
include/spl-kmem.h [moved from include/linux-kmem.h with 100% similarity]
include/spl-kstat.h [moved from include/linux-kstat.h with 99% similarity]
include/spl-mutex.h [moved from include/linux-mutex.h with 99% similarity]
include/spl-random.h [moved from include/linux-random.h with 100% similarity]
include/spl-rwlock.h [moved from include/linux-rwlock.h with 99% similarity]
include/spl-taskq.h [moved from include/linux-taskq.h with 99% similarity]
include/spl-thread.h [moved from include/linux-thread.h with 95% similarity]
include/spl-time.h [moved from include/linux-time.h with 98% similarity]
include/spl-timer.h [moved from include/linux-timer.h with 100% similarity]
include/spl-types.h [moved from include/linux-types.h with 100% similarity]
include/spl.h
modules/spl/Makefile.in
modules/spl/spl-generic.c [moved from modules/spl/linux-generic.c with 93% similarity]
modules/spl/spl-kmem.c [moved from modules/spl/linux-kmem.c with 99% similarity]
modules/spl/spl-rwlock.c [moved from modules/spl/linux-rwlock.c with 95% similarity]
modules/spl/spl-taskq.c [moved from modules/spl/linux-taskq.c with 98% similarity]
modules/spl/spl-thread.c [moved from modules/spl/linux-thread.c with 96% similarity]
modules/splat/splat-internal.h

index 6fb965048275a091a50245fdbf007d4677908995..b84da9a8ee02c4835f88139109a7db4e4bf7478c 100644 (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
similarity index 97%
rename from include/linux-callb.h
rename to include/spl-callb.h
index 0a34ad2cfa0761ef6fcfe36bfc2434ab4a01c4bf..4480b42023ae1c1c37df2c9f95ba3d56f7811b63 100644 (file)
@@ -6,7 +6,7 @@ extern "C" {
 #endif
 
 #include <linux/module.h>
-#include <linux-mutex.h>
+#include "spl-mutex.h"
 
 #define DEBUG_CALLB
 
similarity index 100%
rename from include/linux-cred.h
rename to include/spl-cred.h
similarity index 100%
rename from include/linux-kmem.h
rename to include/spl-kmem.h
similarity index 99%
rename from include/linux-kstat.h
rename to include/spl-kstat.h
index eb65811efeabcd9826122c05a00dfd3bb8743b32..5fc95ccaa4bea24eea9a347e2b774736d603442c 100644 (file)
@@ -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. */
 
similarity index 99%
rename from include/linux-mutex.h
rename to include/spl-mutex.h
index 46406cf5951348ad2c27e4c1e54366fd92aed0fa..a937a1de20f989b4afe25837e696b10ac51ad5e9 100644 (file)
@@ -6,6 +6,7 @@ extern "C" {
 #endif
 
 #include <linux/module.h>
+#include "spl-types.h"
 
 /* See the "Big Theory Statement" in solaris mutex.c.
  *
similarity index 100%
rename from include/linux-random.h
rename to include/spl-random.h
similarity index 99%
rename from include/linux-rwlock.h
rename to include/spl-rwlock.h
index d212059e7e71db16cfd5245c5ef9f6d63de94fbf..305ccdf2b6d1ee2b1e08d2f0990b1e75ed2b0f47 100644 (file)
@@ -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" {
similarity index 99%
rename from include/linux-taskq.h
rename to include/spl-taskq.h
index 90081b25ee411603992c5a0d25b9bf20a6802f0c..bf6e244385421b41e3c641f36b8953b679a3e0ab 100644 (file)
@@ -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
 
similarity index 95%
rename from include/linux-thread.h
rename to include/spl-thread.h
index bcee08e476b308070d7f1fe3ecec1accecce1b31..567d397e1bef4c52175a70de5126ab033f282a22 100644 (file)
@@ -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
similarity index 98%
rename from include/linux-time.h
rename to include/spl-time.h
index 2bbc7b257c014fb3997e75bd94da3f332fb33e39..8fe1e59aacb646fed7971a073e554fd103c135b7 100644 (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 */
similarity index 100%
rename from include/linux-timer.h
rename to include/spl-timer.h
similarity index 100%
rename from include/linux-types.h
rename to include/spl-types.h
index 26e6b8712c8e6c947a621a818864defec2d1bc93..d069fd94dd6c3c14ff65090f141820eef07ef3a5 100644 (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 */
index 134d88227ff2ef0ef156259b54267eb42df0d092..09e934e4f94d244bb7a8966f47e6c11ccdf9f2d4 100644 (file)
@@ -2,18 +2,18 @@
 
 MODULES := spl
 DISTFILES = Makefile.in \
-            linux-kmem.c linux-rwlock.c linux-taskq.c \
-            linux-thread.c linux-generic.c
+            spl-kmem.c spl-rwlock.c spl-taskq.c \
+            spl-thread.c spl-generic.c
 CPPFLAGS += @KERNELCPPFLAGS@
 
 # Solaris porting layer module
 obj-m := spl.o
 
-spl-objs += linux-kmem.o
-spl-objs += linux-thread.o
-spl-objs += linux-taskq.o
-spl-objs += linux-rwlock.o
-spl-objs += linux-generic.o
+spl-objs += spl-kmem.o
+spl-objs += spl-thread.o
+spl-objs += spl-taskq.o
+spl-objs += spl-rwlock.o
+spl-objs += spl-generic.o
 
 splmodule := spl.ko
 splmoduledir := @kmoduledir@/kernel/lib/
similarity index 93%
rename from modules/spl/linux-generic.c
rename to modules/spl/spl-generic.c
index e139c351b9bbdb7eb1151a4d787ed641e4a6759a..8a843569400e1c56e910d8f245bf093196901c20 100644 (file)
@@ -1,4 +1,4 @@
-#include "linux-generic.h"
+#include "spl-generic.h"
 #include "config.h"
 
 /*
similarity index 99%
rename from modules/spl/linux-kmem.c
rename to modules/spl/spl-kmem.c
index 4dc7c01d8a4299f75115add54685a9e2e6e3c3d8..9b8ba26a7eae428e540d01f53f2c06ebc2f25324 100644 (file)
@@ -1,4 +1,4 @@
-#include "linux-kmem.h"
+#include "spl-kmem.h"
 
 /*
  * Memory allocation interfaces
similarity index 95%
rename from modules/spl/linux-rwlock.c
rename to modules/spl/spl-rwlock.c
index 24775c4140105cf01ee04d368b084f1c77bc1c89..cafdd9b1c192e1ea511460574bc254a74288a707 100644 (file)
@@ -1,4 +1,4 @@
-#include <linux-rwlock.h>
+#include <spl-rwlock.h>
 
 int
 rw_lock_held(krwlock_t *rwlp)
similarity index 98%
rename from modules/spl/linux-taskq.c
rename to modules/spl/spl-taskq.c
index ddcf57c3cdc21aa314e1b3d478761d1292aba930..d20ae59bdda68d1f8b89a07103ea43c57fea56a5 100644 (file)
@@ -1,4 +1,4 @@
-#include <linux-taskq.h>
+#include <spl-taskq.h>
 
 /*
  * Task queue interface
similarity index 96%
rename from modules/spl/linux-thread.c
rename to modules/spl/spl-thread.c
index 9785d50d34298e6a171df76c6a537d305cc8937c..b55f8c6af1921e6026339f80c021f41b926d1a8d 100644 (file)
@@ -1,4 +1,4 @@
-#include <linux-thread.h>
+#include <spl-thread.h>
 
 /*
  * Thread interfaces
@@ -90,8 +90,7 @@ __thread_create(caddr_t stk, size_t  stksize, void (*proc)(void *),
 
        /* Solaris says this must never fail so we try forever */
        while ((pid = kernel_thread(thread_generic_wrapper, (void *)&tp, 0)) < 0)
-               printk(KERN_ERR "linux-thread: Unable to create thread; "
-                      "pid = %ld\n", pid);
+               printk(KERN_ERR "Unable to create thread; pid = %ld\n", pid);
 
        /* All signals are ignored due to sleeping TASK_UNINTERRUPTIBLE */
        for (;;) {
index 4e017e01e5879283658ee4fde88b65bb2c54ddfe..a64b711fed6dc6e0f27500eeb32256198d9d32e0 100644 (file)
 #include <asm/uaccess.h>
 #include <stdarg.h>
 
-#include <linux-generic.h>
-#include <linux-types.h>
-#include <linux-kmem.h>
-#include <linux-mutex.h>
-#include <linux-condvar.h>
-#include <linux-random.h>
-#include <linux-thread.h>
-#include <linux-taskq.h>
-#include <linux-rwlock.h>
-#include <linux-timer.h>
-#include <linux-time.h>
-#include <linux-cred.h>
-#include <linux-kstat.h>
-#include <linux-callb.h>
-
-#include <splat-ctl.h>
+#include "spl.h"
+#include "splat-ctl.h"
 
 #define SPLAT_SUBSYSTEM_INIT(type)                                      \
 ({      splat_subsystem_t *_sub_;                                         \