summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--modules/spl/linux-generic.c19
2 files changed, 20 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3992520ac..6b8dd7d36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/modules/spl/linux-generic.c b/modules/spl/linux-generic.c
index fa1ebab85..e139c351b 100644
--- a/modules/spl/linux-generic.c
+++ b/modules/spl/linux-generic.c
@@ -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");