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-changelog

[Xen-changelog] [NET] front: The initialization and removal functions sh

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [NET] front: The initialization and removal functions should be tagged
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 May 2006 10:58:12 +0000
Delivery-date: Thu, 18 May 2006 04:00:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 65421cc6d86baec5b8710aff06aa655afe9094c6
# Parent  119ec411770842195510452da6943d8ae9027b22
[NET] front: The initialization and removal functions should be tagged
with proper section attributes to save space.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff -r 119ec4117708 -r 65421cc6d86b 
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Thu May 18 
10:05:32 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Thu May 18 
10:06:52 2006 +0100
@@ -146,7 +146,7 @@ static inline unsigned short get_id_from
 }
 
 #ifdef DEBUG
-static char *be_state_name[] = {
+static const char *be_state_name[] = {
        [BEST_CLOSED]       = "closed",
        [BEST_DISCONNECTED] = "disconnected",
        [BEST_CONNECTED]    = "connected",
@@ -198,8 +198,8 @@ static void xennet_proc_delif(struct net
  * inform the backend of the appropriate details for those.  Switch to
  * Connected state.
  */
-static int netfront_probe(struct xenbus_device *dev,
-                         const struct xenbus_device_id *id)
+static int __devinit netfront_probe(struct xenbus_device *dev,
+                                   const struct xenbus_device_id *id)
 {
        int err;
        struct net_device *netdev;
@@ -1094,8 +1094,8 @@ static void network_set_multicast_list(s
  * @param val return parameter for created device
  * @return 0 on success, error code otherwise
  */
-static int create_netdev(int handle, struct xenbus_device *dev,
-                        struct net_device **val)
+static int __devinit create_netdev(int handle, struct xenbus_device *dev,
+                                  struct net_device **val)
 {
        int i, err = 0;
        struct net_device *netdev = NULL;
@@ -1231,7 +1231,7 @@ static void netfront_closing(struct xenb
 }
 
 
-static int netfront_remove(struct xenbus_device *dev)
+static int __devexit netfront_remove(struct xenbus_device *dev)
 {
        struct netfront_info *info = dev->data;
 
@@ -1307,7 +1307,7 @@ static struct xenbus_driver netfront = {
        .owner = THIS_MODULE,
        .ids = netfront_ids,
        .probe = netfront_probe,
-       .remove = netfront_remove,
+       .remove = __devexit_p(netfront_remove),
        .resume = netfront_resume,
        .otherend_changed = backend_changed,
 };
@@ -1338,7 +1338,7 @@ module_init(netif_init);
 module_init(netif_init);
 
 
-static void netif_exit(void)
+static void __exit netif_exit(void)
 {
        unregister_inetaddr_notifier(&notifier_inetdev);
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [NET] front: The initialization and removal functions should be tagged, Xen patchbot-unstable <=