WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux: add __exit to module_exit() handlers

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux: add __exit to module_exit() handlers
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Tue, 11 Dec 2007 16:40:57 +0000
Delivery-date: Tue, 11 Dec 2007 08:40:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
As usual, written and tested on 2.6.24-rc4 and made apply to the 2.6.18
tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: head-2007-12-11/drivers/xen/balloon/balloon.c
===================================================================
--- head-2007-12-11.orig/drivers/xen/balloon/balloon.c  2007-10-23 
08:59:39.000000000 +0200
+++ head-2007-12-11/drivers/xen/balloon/balloon.c       2007-12-11 
13:17:53.000000000 +0100
@@ -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; 
Index: head-2007-12-11/drivers/xen/blkfront/blkfront.c
===================================================================
--- head-2007-12-11.orig/drivers/xen/blkfront/blkfront.c        2007-12-11 
11:21:54.000000000 +0100
+++ head-2007-12-11/drivers/xen/blkfront/blkfront.c     2007-12-11 
13:12:17.000000000 +0100
@@ -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);
 }
Index: head-2007-12-11/drivers/xen/core/xen_sysfs.c
===================================================================
--- head-2007-12-11.orig/drivers/xen/core/xen_sysfs.c   2007-12-11 
11:13:33.000000000 +0100
+++ head-2007-12-11/drivers/xen/core/xen_sysfs.c        2007-12-11 
13:12:49.000000000 +0100
@@ -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();
Index: head-2007-12-11/drivers/xen/evtchn/evtchn.c
===================================================================
--- head-2007-12-11.orig/drivers/xen/evtchn/evtchn.c    2007-12-11 
13:10:58.000000000 +0100
+++ head-2007-12-11/drivers/xen/evtchn/evtchn.c 2007-12-11 11:45:10.000000000 
+0100
@@ -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);




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux: add __exit to module_exit() handlers, Jan Beulich <=