diff --git a/lib/libspl/include/sys/fm/util.h b/lib/libspl/include/sys/fm/util.h index 564d0b5b5a..c7ba55ecd4 100644 --- a/lib/libspl/include/sys/fm/util.h +++ b/lib/libspl/include/sys/fm/util.h @@ -27,4 +27,7 @@ #ifndef _LIBSPL_SYS_FM_UTIL_H #define _LIBSPL_SYS_FM_UTIL_H +static inline void fm_init(void) { } +static inline void fm_fini(void) { } + #endif diff --git a/module/nvpair/Makefile.in b/module/nvpair/Makefile.in index acd9ac4f99..3f643e724d 100644 --- a/module/nvpair/Makefile.in +++ b/module/nvpair/Makefile.in @@ -7,3 +7,4 @@ obj-m := ${MODULE}.o ${MODULE}-objs += nvpair.o ${MODULE}-objs += nvpair_alloc_spl.o +${MODULE}-objs += nvpair_alloc_fixed.o diff --git a/module/nvpair/nvpair_alloc_fixed.c b/module/nvpair/nvpair_alloc_fixed.c index b1128eeb9b..20081ba56c 100644 --- a/module/nvpair/nvpair_alloc_fixed.c +++ b/module/nvpair/nvpair_alloc_fixed.c @@ -24,7 +24,7 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" + #include #include @@ -118,3 +118,7 @@ const nv_alloc_ops_t nv_fixed_ops_def = { }; const nv_alloc_ops_t *nv_fixed_ops = &nv_fixed_ops_def; + +#if defined(_KERNEL) && defined(HAVE_SPL) +EXPORT_SYMBOL(nv_fixed_ops); +#endif