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