summaryrefslogtreecommitdiffstats
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.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/module/unicode/u8_textprep.c b/module/unicode/u8_textprep.c
index f5ab77951..26cc39f3b 100644
--- a/module/unicode/u8_textprep.c
+++ b/module/unicode/u8_textprep.c
@@ -2133,13 +2133,18 @@ u8_textprep_str(char *inarray, size_t *inlen, char *outarray, size_t *outlen,
}
#if defined(_KERNEL) && defined(HAVE_SPL)
-#include <linux/module_compat.h>
+static int __init
+unicode_init(void) {
+ return (0);
+}
-static int unicode_init(void) { return 0; }
-static int unicode_fini(void) { return 0; }
+static void __exit
+unicode_fini(void)
+{
+}
-spl_module_init(unicode_init);
-spl_module_exit(unicode_fini);
+module_init(unicode_init);
+module_exit(unicode_fini);
MODULE_DESCRIPTION("Unicode implementation");
MODULE_AUTHOR(ZFS_META_AUTHOR);