aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/spl/sys/kmem_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/os/freebsd/spl/sys/kmem_cache.h')
-rw-r--r--include/os/freebsd/spl/sys/kmem_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/os/freebsd/spl/sys/kmem_cache.h b/include/os/freebsd/spl/sys/kmem_cache.h
index d8e0349e4ca3..9eec3b4585cb 100644
--- a/include/os/freebsd/spl/sys/kmem_cache.h
+++ b/include/os/freebsd/spl/sys/kmem_cache.h
@@ -30,6 +30,7 @@
#ifndef _SPL_KMEM_CACHE_H
#define _SPL_KMEM_CACHE_H
+#ifdef _KERNEL
#include <sys/taskq.h>
/* kmem move callback return values */
@@ -46,4 +47,6 @@ extern void spl_kmem_cache_set_move(kmem_cache_t *,
#define kmem_cache_set_move(skc, move) spl_kmem_cache_set_move(skc, move)
+#endif /* _KERNEL */
+
#endif