aboutsummaryrefslogtreecommitdiffstats
path: root/module/unicode/u8_textprep.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/unicode/u8_textprep.c')
-rw-r--r--module/unicode/u8_textprep.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/module/unicode/u8_textprep.c b/module/unicode/u8_textprep.c
index 2532769c8..df6dcf552 100644
--- a/module/unicode/u8_textprep.c
+++ b/module/unicode/u8_textprep.c
@@ -2131,3 +2131,20 @@ u8_textprep_str(char *inarray, size_t *inlen, char *outarray, size_t *outlen,
return (ret_val);
}
+
+#if defined(_KERNEL) && defined(HAVE_SPL)
+
+static int unicode_init(void) { return 0; }
+static int unicode_fini(void) { return 0; }
+
+spl_module_init(unicode_init);
+spl_module_exit(unicode_fini);
+
+MODULE_DESCRIPTION("Unicode implementation");
+MODULE_AUTHOR(ZFS_META_AUTHOR);
+MODULE_LICENSE(ZFS_META_LICENSE);
+
+EXPORT_SYMBOL(u8_validate);
+EXPORT_SYMBOL(u8_strcmp);
+EXPORT_SYMBOL(u8_textprep_str);
+#endif