Skip to contentSkip to conversation

linux: add __exit to module_exit() handlers

PATCH New Jan Beulich 1 participant 1 message Dec 11, 2007 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: add __exit to module_exit() handlers

As usual, written and tested on 2.6.24-rc4 and made apply to the 2.6.18 tree without further testing.

drivers/xen/balloon/balloon.c +1 -1
Index: head-2007-12-11/drivers/xen/balloon/balloon.c
===================================================================
@@ -527,7 +527,7 @@ static int __init balloon_init(void)
 
 subsys_initcall(balloon_init);
 
-static void balloon_exit(void) 
+static void __exit balloon_exit(void)
 {
     /* XXX - release balloon here */
     return; 
drivers/xen/blkfront/blkfront.c +1 -1
Index: head-2007-12-11/drivers/xen/blkfront/blkfront.c
===================================================================
@@ -911,7 +911,7 @@ static int __init xlblk_init(void)
 module_init(xlblk_init);
 
 
-static void xlblk_exit(void)
+static void __exit xlblk_exit(void)
 {
 	return xenbus_unregister_driver(&blkfront);
 }
drivers/xen/core/xen_sysfs.c +1 -1
Index: head-2007-12-11/drivers/xen/core/xen_sysfs.c
===================================================================
@@ -364,7 +364,7 @@ out:
 	return ret;
 }
 
-static void hyper_sysfs_exit(void)
+static void __exit hyper_sysfs_exit(void)
 {
 	xen_properties_destroy();
 	xen_compilation_destroy();
drivers/xen/evtchn/evtchn.c +1 -1
Index: head-2007-12-11/drivers/xen/evtchn/evtchn.c
===================================================================
@@ -544,7 +544,7 @@ static int __init evtchn_init(void)
 	return 0;
 }
 
-static void evtchn_cleanup(void)
+static void __exit evtchn_cleanup(void)
 {
 	misc_deregister(&evtchn_miscdev);
 	unregister_cpu_notifier(&evtchn_cpu_nfb);