aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/spa_boot.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 11:49:16 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 13:41:58 -0700
commitc28b227942b421ebdc03c9df9a012642fb517223 (patch)
treeec584e21d6fbc819353792d54a7dffb454029111 /module/zfs/spa_boot.c
parent00b46022c676e402e3f33ce93ee2983bbad2c46f (diff)
Add linux kernel module support
Setup linux kernel module support, this includes: - zfs context for kernel/user - kernel module build system integration - kernel module macros - kernel module symbol export - kernel module options Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/spa_boot.c')
-rw-r--r--module/zfs/spa_boot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/zfs/spa_boot.c b/module/zfs/spa_boot.c
index a6cdb8189..be79542c9 100644
--- a/module/zfs/spa_boot.c
+++ b/module/zfs/spa_boot.c
@@ -24,6 +24,8 @@
* Use is subject to license terms.
*/
+#ifdef _KERNEL
+
#include <sys/zio.h>
#include <sys/spa.h>
#include <sys/sunddi.h>
@@ -44,3 +46,5 @@ spa_free_bootprop(char *value)
{
ddi_prop_free(value);
}
+
+#endif /* _KERNEL */