mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +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:
@@ -678,13 +678,19 @@ zfs_prop_align_right(zfs_prop_t prop)
|
||||
#endif
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#include <linux/module_compat.h>
|
||||
static int __init
|
||||
zcommon_init(void)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int zcommon_init(void) { return 0; }
|
||||
static int zcommon_fini(void) { return 0; }
|
||||
static void __exit
|
||||
zcommon_fini(void)
|
||||
{
|
||||
}
|
||||
|
||||
spl_module_init(zcommon_init);
|
||||
spl_module_exit(zcommon_fini);
|
||||
module_init(zcommon_init);
|
||||
module_exit(zcommon_fini);
|
||||
|
||||
MODULE_DESCRIPTION("Generic ZFS support");
|
||||
MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
|
||||
Reference in New Issue
Block a user