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] Xen bk snapshot: netfront.c should use module_init()

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Xen bk snapshot: netfront.c should use module_init()
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: Mon, 17 Jan 2005 17:05:19 +1100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: Mon, 17 Jan 2005 06:12:36 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
__initcall is for things which are always built into the kernel.
Kconfig says netfront is tristate (although without a module_exit, the
module won't be unloadable).

Trivial fix,
Rusty.

--- linux-2.6.10-xen-sparse/drivers/xen/netfront/netfront.c.~1~ 2005-01-11 
15:35:59.000000000 +1100
+++ linux-2.6.10-xen-sparse/drivers/xen/netfront/netfront.c     2005-01-17 
15:41:21.000000000 +1100
@@ -1343,4 +1343,4 @@
 }
 
 
-__initcall(netif_init);
+module_init(netif_init);

-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Xen bk snapshot: netfront.c should use module_init(), Rusty Russell <=