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:
+11
-5
@@ -1030,13 +1030,19 @@ done:
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#include <linux/module_compat.h>
|
||||
static int __init
|
||||
avl_init(void)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int avl_init(void) { return 0; }
|
||||
static int avl_fini(void) { return 0; }
|
||||
static void __exit
|
||||
avl_fini(void)
|
||||
{
|
||||
}
|
||||
|
||||
spl_module_init(avl_init);
|
||||
spl_module_exit(avl_fini);
|
||||
module_init(avl_init);
|
||||
module_exit(avl_fini);
|
||||
|
||||
MODULE_DESCRIPTION("Generic AVL tree implementation");
|
||||
MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
|
||||
Reference in New Issue
Block a user