]> granicus.if.org Git - zfs/commitdiff
OK, it builds... and the modules load... now for some more
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 21:56:51 +0000 (21:56 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 21:56:51 +0000 (21:56 +0000)
cleanup to remove the remaining vestages of the time it lives
with the ZFS code.

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

configure.ac
modules/spl/linux-generic.c

index 3992520ac806b53aa6c55c34f5d9503ea0609e01..6b8dd7d36b01df3ae192baead279d7adb51b68da 100644 (file)
@@ -2,7 +2,7 @@ AC_INIT
 
 AC_CANONICAL_SYSTEM
 AM_INIT_AUTOMAKE(spl, 0.0.1)
-AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_HEADERS([include/config.h])
 
 AC_PROG_INSTALL
 AC_PROG_CC
index fa1ebab85910924422e5f3411d20d4638bea5d80..e139c351b9bbdb7eb1151a4d787ed641e4a6759a 100644 (file)
@@ -1,4 +1,5 @@
 #include "linux-generic.h"
+#include "config.h"
 
 /*
  * Generic support
@@ -6,3 +7,21 @@
 
 int p0 = 0;
 EXPORT_SYMBOL(p0);
+
+static int __init spl_init(void)
+{
+        printk(KERN_INFO "spl: Loaded Solaris Porting Layer v%s\n", VERSION);
+       return 0;
+}
+
+static void spl_fini(void)
+{
+       return;
+}
+
+module_init(spl_init);
+module_exit(spl_fini);
+
+MODULE_AUTHOR("Lawrence Livermore National Labs");
+MODULE_DESCRIPTION("Solaris Porting Layer");
+MODULE_LICENSE("GPL");