ia64/xen-unstable

changeset 10091:65421cc6d86b

[NET] front: The initialization and removal functions should be tagged
with proper section attributes to save space.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 18 10:06:52 2006 +0100 (2006-05-18)
parents 119ec4117708
children 843b9ef21352
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu May 18 10:05:32 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu May 18 10:06:52 2006 +0100
     1.3 @@ -146,7 +146,7 @@ static inline unsigned short get_id_from
     1.4  }
     1.5  
     1.6  #ifdef DEBUG
     1.7 -static char *be_state_name[] = {
     1.8 +static const char *be_state_name[] = {
     1.9  	[BEST_CLOSED]       = "closed",
    1.10  	[BEST_DISCONNECTED] = "disconnected",
    1.11  	[BEST_CONNECTED]    = "connected",
    1.12 @@ -198,8 +198,8 @@ static void xennet_proc_delif(struct net
    1.13   * inform the backend of the appropriate details for those.  Switch to
    1.14   * Connected state.
    1.15   */
    1.16 -static int netfront_probe(struct xenbus_device *dev,
    1.17 -			  const struct xenbus_device_id *id)
    1.18 +static int __devinit netfront_probe(struct xenbus_device *dev,
    1.19 +				    const struct xenbus_device_id *id)
    1.20  {
    1.21  	int err;
    1.22  	struct net_device *netdev;
    1.23 @@ -1094,8 +1094,8 @@ static void network_set_multicast_list(s
    1.24   * @param val return parameter for created device
    1.25   * @return 0 on success, error code otherwise
    1.26   */
    1.27 -static int create_netdev(int handle, struct xenbus_device *dev,
    1.28 -			 struct net_device **val)
    1.29 +static int __devinit create_netdev(int handle, struct xenbus_device *dev,
    1.30 +				   struct net_device **val)
    1.31  {
    1.32  	int i, err = 0;
    1.33  	struct net_device *netdev = NULL;
    1.34 @@ -1231,7 +1231,7 @@ static void netfront_closing(struct xenb
    1.35  }
    1.36  
    1.37  
    1.38 -static int netfront_remove(struct xenbus_device *dev)
    1.39 +static int __devexit netfront_remove(struct xenbus_device *dev)
    1.40  {
    1.41  	struct netfront_info *info = dev->data;
    1.42  
    1.43 @@ -1307,7 +1307,7 @@ static struct xenbus_driver netfront = {
    1.44  	.owner = THIS_MODULE,
    1.45  	.ids = netfront_ids,
    1.46  	.probe = netfront_probe,
    1.47 -	.remove = netfront_remove,
    1.48 +	.remove = __devexit_p(netfront_remove),
    1.49  	.resume = netfront_resume,
    1.50  	.otherend_changed = backend_changed,
    1.51  };
    1.52 @@ -1338,7 +1338,7 @@ static int __init netif_init(void)
    1.53  module_init(netif_init);
    1.54  
    1.55  
    1.56 -static void netif_exit(void)
    1.57 +static void __exit netif_exit(void)
    1.58  {
    1.59  	unregister_inetaddr_notifier(&notifier_inetdev);
    1.60