From 7001fd57faa629d29fb5ae538c245296c7eb046e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 9 Jan 2009 16:38:13 -0800 Subject: [PATCH] Register sensible init/fini hooks --- module/zfs/zfs_ioctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index e42513365a..f4bfc90831 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -3182,7 +3182,7 @@ _fini(void) #ifdef HAVE_SPL int -__init(void) +init(void) { int rc; @@ -3194,14 +3194,14 @@ __init(void) } void -__fini(void) +fini(void) { (void)_fini(); printk(KERN_INFO "ZFS: Unloaded v%s\n", VERSION); } -module_init(__init); -module_exit(__fini); +module_init(init); +module_exit(fini); MODULE_AUTHOR("Sun Microsystems, Inc"); MODULE_DESCRIPTION("ZFS");