mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Retire spl_module_init()/spl_module_fini()
In the original implementation of the SPL wrappers were provided for module initialization and cleanup. This was done to abstract away any compatibility code which might be needed for the SPL. As it turned out the only significant compatibility issue was that the default pwd during module load differed under Illumos and Linux. Since this is such as minor thing and the wrappers complicate the code they are being retired. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2985
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user