]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
More build fixes, I have the kernel module almost building and its
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 00:59:48 +0000 (00:59 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 00:59:48 +0000 (00:59 +0000)
feeling a lot more sane, cleaner, and linuxy.  I may finish this tonight.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@4 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

20 files changed:
configure.ac
include/linux-callb.h
include/linux-condvar.h
include/linux-cred.h
include/linux-generic.h
include/linux-kmem.h
include/linux-kstat.h
include/linux-mutex.h
include/linux-random.h
include/linux-rwlock.h
include/linux-taskq.h
include/linux-thread.h
include/linux-time.h
include/linux-timer.h
include/linux-types.h
include/spl.h
include/splat-ctl.h
src/spl/Makefile.in
src/spl/linux-thread.c
src/splat/Makefile.in

index 833514dc11ab64145d7004844276b646afd4aaf9..215b5091c1796e519567db1a60152493e522f36a 100644 (file)
@@ -9,8 +9,6 @@ AC_PROG_CC
 AC_PROG_LIBTOOL
 
 ver=`uname -r`
-KERNELCFLAGS=
-
 kernelsrc=
 kernelbuild=
 AC_ARG_WITH(kernel,
@@ -98,6 +96,10 @@ else
        AC_MSG_RESULT([no])
 fi
 
+# Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build
+KERNELMAKE_PARAMS=
+KERNELCPPFLAGS="-I`/bin/pwd`/include"
+
 if test "$kernelbuild" != "$kernelsrc"; then
        KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
 fi
index 5ddb678b3d749b0b49b520fcb8656832b08877a1..6ffcfb76ed64ae75592508425aa6e14487efd1c7 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef _SYS_LINUX_CALLB_H
-#define _SYS_LINUX_CALLB_H
+#ifndef _LINUX_CALLB_H
+#define _LINUX_CALLB_H
 
 #ifdef  __cplusplus
 extern "C" {
 #endif
 
-#include <sys/linux-mutex.h>
+#include <linux-mutex.h>
 
 #define DEBUG_CALLB
 
@@ -41,5 +41,5 @@ typedef struct callb_cpr {
 }
 #endif
 
-#endif  /* _SYS_LINUX_CALLB_H */
+#endif  /* _LINUX_CALLB_H */
 
index 33ad515392d290e5823f6549a0f24f0e1115de40..e4a1779a5349f345ca8bd26e1c8f542f9d92b74a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_CONDVAR_H
-#define _SYS_LINUX_CONDVAR_H
+#ifndef _LINUX_CONDVAR_H
+#define _LINUX_CONDVAR_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -198,4 +198,4 @@ cv_broadcast(kcondvar_t *cvp)
        if (atomic_read(&cvp->cv_waiters) > 0)
                wake_up_all(&cvp->cv_event);
 }
-#endif /* _SYS_LINUX_CONDVAR_H */
+#endif /* _LINUX_CONDVAR_H */
index 5f308bace9715d81af6dcbb6b1a5bbad682ea601..d342aa016df89e5d79d89d74215352946ce69737 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_CRED_H
-#define _SYS_LINUX_CRED_H
+#ifndef _LINUX_CRED_H
+#define _LINUX_CRED_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -36,5 +36,5 @@ typedef struct cred {
 }
 #endif
 
-#endif  /* _SYS_LINUX_CRED_H */
+#endif  /* _LINUX_CRED_H */
 
index 5c4f9146af4ea288097480fc0a10adcfa6a45e10..e36baef0efab5f88b1c54a8e64313d87dd5f4b45 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_GENERIC_H
-#define _SYS_LINUX_GENERIC_H
+#ifndef _LINUX_GENERIC_H
+#define _LINUX_GENERIC_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -69,4 +69,4 @@ static int p0 = 0;
 }
 #endif
 
-#endif  /* _SYS_LINUX_GENERIC_H */
+#endif  /* _LINUX_GENERIC_H */
index c68344cf3f01253379792b442c36742958fb3831..f08590d1d2d0c70459bb226555095a046c97e718 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_KMEM_H
-#define        _SYS_LINUX_KMEM_H
+#ifndef _LINUX_KMEM_H
+#define        _LINUX_KMEM_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -170,4 +170,4 @@ __kmem_cache_destroy(kmem_cache_t *cache);
 }
 #endif
 
-#endif /* _SYS_LINUX_KMEM_H */
+#endif /* _LINUX_KMEM_H */
index 738dbc8679a692edba6387f5027762a8fcf77f31..27aefdb9d6634daba7c77b113786994b9d3fee03 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef _SYS_LINUX_KSTAT_H
-#define _SYS_LINUX_KSTAT_H
+#ifndef _LINUX_KSTAT_H
+#define _LINUX_KSTAT_H
 
 #ifdef  __cplusplus
 extern "C" {
 #endif
 
-#include <sys/linux-types.h>
+#include <linux-types.h>
 
 /* XXX - The minimum functionality here is stubbed out but nothing works. */
 
@@ -132,5 +132,5 @@ kstat_delete(kstat_t *ksp)
 }
 #endif
 
-#endif  /* _SYS_LINUX_KSTAT_H */
+#endif  /* _LINUX_KSTAT_H */
 
index 42056617f26b15c9ae06f5aba628d1cbdf30d3dc..1fea2e7d1dd4c8d55edc219d455958087a0e9ded 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_MUTEX_H
-#define        _SYS_LINUX_MUTEX_H
+#ifndef _LINUX_MUTEX_H
+#define        _LINUX_MUTEX_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -115,4 +115,4 @@ mutex_owner(kmutex_t *mp)
 }
 #endif
 
-#endif /* _SYS_LINUX_MUTEX_H */
+#endif /* _LINUX_MUTEX_H */
index 51233d48f8bb712dad5fedf70d766f81a15331c2..78327d0f0e44b3b697a03eb2e1641109e4cdf0a3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_RANDOM_H
-#define        _SYS_LINUX_RANDOM_H
+#ifndef _LINUX_RANDOM_H
+#define        _LINUX_RANDOM_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -34,4 +34,4 @@ random_get_pseudo_bytes(uint8_t *ptr, size_t len)
 }
 #endif
 
-#endif /* _SYS_LINUX_RANDOM_H */
+#endif /* _LINUX_RANDOM_H */
index a6a2787d8af65834b3c18c8babcf7216b473a277..6ceafddf8640304350a25d717c745a8884547030 100644 (file)
@@ -1,10 +1,10 @@
-#ifndef _SYS_LINUX_RWLOCK_H
-#define        _SYS_LINUX_RWLOCK_H
+#ifndef _LINUX_RWLOCK_H
+#define        _LINUX_RWLOCK_H
 
 #include <linux/slab.h>
 #include <linux/rwsem.h>
 #include <asm/current.h>
-#include <sys/linux-types.h>
+#include <linux-types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -220,4 +220,4 @@ rw_owner(krwlock_t *rwlp)
 }
 #endif
 
-#endif /* _SYS_LINUX_RWLOCK_H */
+#endif /* _LINUX_RWLOCK_H */
index 3612f84c0386aa315335108dbcde20641eddc55f..9680178df5dfe906dccd59c96324cc73ec41c637 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_TASKQ_H
-#define _SYS_LINUX_TASKQ_H
+#ifndef _LINUX_TASKQ_H
+#define _LINUX_TASKQ_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -23,7 +23,7 @@ extern "C" {
 #include <linux/gfp.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
-#include <sys/linux-types.h>
+#include <linux-types.h>
 
 #undef DEBUG_TASKQ_UNIMPLEMENTED
 
@@ -83,4 +83,4 @@ extern taskq_t *__taskq_create(const char *, int, pri_t, int, int, uint_t);
 }
 #endif
 
-#endif  /* _SYS_LINUX_TASKQ_H */
+#endif  /* _LINUX_TASKQ_H */
index dc9726322afc0a0a93bf14eb49d0da337f482199..a1e1296a350471bb40306532397f9c03582109bf 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_THREAD_H
-#define _SYS_LINUX_THREAD_H
+#ifndef _LINUX_THREAD_H
+#define _LINUX_THREAD_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -7,8 +7,8 @@ extern "C" {
 
 #include <linux/mm.h>
 #include <linux/spinlock.h>
-#include <sys/linux-types.h>
-#include <sys/linux-generic.h>
+#include <linux-types.h>
+#include <linux-generic.h>
 
 /*
  * Thread interfaces
@@ -44,5 +44,5 @@ kthread_t * __thread_create(caddr_t stk, size_t  stksize,
 }
 #endif
 
-#endif  /* _SYS_LINUX_THREAD_H */
+#endif  /* _LINUX_THREAD_H */
 
index c1105ab6be4c70f6eebdd0b50a43c11bf044feb1..792811c697828adae2e0f60f438e83091731cf3a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_TIME_H
-#define _SYS_TIME_H
+#ifndef _TIME_H
+#define _TIME_H
 
 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.16  */
 
@@ -13,7 +13,7 @@ extern "C" {
 #endif
 
 #include <linux/time.h>
-#include <sys/linux-types.h>
+#include <linux-types.h>
 
 extern unsigned long long monotonic_clock(void);
 typedef struct timespec timestruc_t;    /* definition per SVr4 */
@@ -61,4 +61,4 @@ gethrestime_sec(void)
 }
 #endif
 
-#endif  /* _SYS_TIME_H */
+#endif  /* _TIME_H */
index a01579519eeb84dbf303d9aef7a07e324d492de9..0ff296ede89369c3a66930270904f4bc7b34c3b6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_LINUX_TIMER_H
-#define _SYS_LINUX_TIMER_H
+#ifndef _LINUX_TIMER_H
+#define _LINUX_TIMER_H
 
 #ifdef  __cplusplus
 extern "C" {
@@ -17,5 +17,5 @@ extern "C" {
 }
 #endif
 
-#endif  /* _SYS_LINUX_TIMER_H */
+#endif  /* _LINUX_TIMER_H */
 
index d2b12a16b9ddc4cd8aa7bfcb8dbb8dc91a00f25e..af692e364ec0c3e74a982a259cc2e0ebc01927e2 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef _SYS_LINUX_TYPES_H
-#define        _SYS_LINUX_TYPES_H
+#ifndef _LINUX_TYPES_H
+#define        _LINUX_TYPES_H
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef enum { B_FALSE=0, B_TRUE=1 }   boolean_t;
+typedef enum { B_FALSE=0, B_TRUE=1 }   boolean_t;
 typedef unsigned long                  uintptr_t;
 typedef unsigned long                  intptr_t;
 typedef unsigned long                  ulong_t;
@@ -16,7 +16,7 @@ typedef unsigned long long            u_offset_t;
 typedef unsigned long long             rlim64_t;
 typedef long long                      longlong_t;
 typedef long long                      offset_t;
-typedef struct task_struct             kthread_t;
+typedef struct task_struct             kthread_t;
 typedef struct vmem { }                        vmem_t;
 typedef short                          pri_t;
 
@@ -24,4 +24,4 @@ typedef short                         pri_t;
 }
 #endif
 
-#endif /* _SYS_LINUX_TYPES_H */
+#endif /* _LINUX_TYPES_H */
index ba38e810544f1781ac5bafec01b147fc8c92afb1..26e6b8712c8e6c947a621a818864defec2d1bc93 100644 (file)
@@ -1,4 +1,4 @@
-#ifndef _SYS_SPL_H
-#define _SYS_SPL_H
+#ifndef _SPL_H
+#define _SPL_H
 
-#endif /* _SYS_SPL_H */
+#endif /* _SPL_H */
index b0e2a69eb46dff2e384baedd733257296f883f65..89b8eb7b0ea82fd8f81813db4559cb0107d3d132 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_KZT_H
-#define _SYS_KZT_H
+#ifndef _SPLAT_CTL_H
+#define _SPLAY_CTL_H
 
 #ifdef _KERNEL
 #include <asm/ioctls.h>
@@ -208,4 +208,4 @@ kzt_subsystem_t * kzt_time_init(void);
 
 #endif /* _KERNEL */
 
-#endif /* _SYS_KZT_H */
+#endif /* _SPLAY_CTL_H */
index 8a8674d6e6bc88477b4ae60360134bfc33af3d29..2a77394d31462f8b7d0688156e2583e062650810 100644 (file)
@@ -1,17 +1,9 @@
 # Makefile.in for spl kernel module
 
 MODULES := spl
-
 DISTFILES = Makefile.in \
             linux-kmem.c linux-rwlock.c linux-taskq.c linux-thread.c
-
-EXTRA_CFLAGS += -I$(src)
-
-# Removed '-std=gnu99' does to compile issues with i386 SPIN_LOCK_UNLOCKED
-# EXTRA_CFLAGS += -Wall -Wno-unknown-pragmas -Wno-missing-braces \
-#         -Wno-sign-compare -Wno-parentheses -Wno-uninitialized \
-#         -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs \
-#         -Wno-char-subscripts -Wno-switch
+CPPFLAGS += @KERNELCPPFLAGS@
 
 # Solaris porting layer module
 obj-m := spl.o
index ad036471a99a48de5da032e9d7aa503553864af7..f3caa6365e22952e70dd3d0d300697b95487714a 100644 (file)
@@ -1,4 +1,4 @@
-#include <sys/linux-thread.h>
+#include <linux-thread.h>
 
 /*
  * Thread interfaces
index 758c4be0a5b13f2fb5cad23c59b25e87c94ab9d0..ebc0fb6cf5eafbb3b24912f6459368d9210797b0 100644 (file)
@@ -1,18 +1,11 @@
 # Makefile.in for splat kernel module
 
 MODULES := splat
-
 DISTFILES = Makefile.in \
             splat-kmem.c splat-random.c splat-taskq.c \
             splat-time.c splat-condvar.c  splat-mutex.c \
             splat-rwlock.c  splat-thread.c splat-ctl.c
-
-# Removed '-std=gnu99' does to compile issues with i386 SPIN_LOCK_UNLOCKED
-# EXTRA_CFLAGS += -I$(src)
-# EXTRA_CFLAGS += -Wall -Wno-unknown-pragmas -Wno-missing-braces \
-#         -Wno-sign-compare -Wno-parentheses -Wno-uninitialized \
-#         -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs \
-#         -Wno-char-subscripts -Wno-switch
+CPPFLAGS += @KERNELCPPFLAGS@
 
 # Solaris porting layer aggressive tests
 obj-m := splat.o