netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shmulik Hen <shmulik.hen@intel.com>
To: bonding-devel@lists.sourceforge.net, netdev@oss.sgi.com
Subject: [SET 1][PATCH 2/6][bonding] backport 2.6 changes to 2.4
Date: Fri, 8 Aug 2003 17:44:21 +0300	[thread overview]
Message-ID: <200308081744.21237.shmulik.hen@intel.com> (raw)

Export alloc_netdev()

diff -Nuarp linux-2.4.22-rc1/drivers/net/net_init.c linux-2.4.22-rc1-devel/drivers/net/net_init.c
--- linux-2.4.22-rc1/drivers/net/net_init.c	Fri Aug  8 14:02:26 2003
+++ linux-2.4.22-rc1-devel/drivers/net/net_init.c	Fri Aug  8 14:02:27 2003
@@ -71,7 +71,7 @@
 */
 
 
-static struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
+struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
 				       void (*setup)(struct net_device *))
 {
 	struct net_device *dev;
@@ -97,6 +97,7 @@ static struct net_device *alloc_netdev(i
 
 	return dev;
 }
+EXPORT_SYMBOL(alloc_netdev);
 
 static struct net_device *init_alloc_dev(int sizeof_priv)
 {
diff -Nuarp linux-2.4.22-rc1/include/linux/netdevice.h linux-2.4.22-rc1-devel/include/linux/netdevice.h
--- linux-2.4.22-rc1/include/linux/netdevice.h	Fri Aug  8 14:02:26 2003
+++ linux-2.4.22-rc1-devel/include/linux/netdevice.h	Fri Aug  8 14:02:27 2003
@@ -801,6 +801,8 @@ extern void		tr_setup(struct net_device 
 extern void		fc_setup(struct net_device *dev);
 extern void		fc_freedev(struct net_device *dev);
 /* Support for loadable net-drivers */
+extern struct net_device *alloc_netdev(int sizeof_priv, const char *name,
+				       void (*setup)(struct net_device *));
 extern int		register_netdev(struct net_device *dev);
 extern void		unregister_netdev(struct net_device *dev);
 /* Functions used for multicast support */


-- 
| Shmulik Hen   Advanced Network Services  |
| Israel Design Center, Jerusalem          |
| LAN Access Division, Platform Networking |
| Intel Communications Group, Intel corp.  |

                 reply	other threads:[~2003-08-08 14:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200308081744.21237.shmulik.hen@intel.com \
    --to=shmulik.hen@intel.com \
    --cc=bonding-devel@lists.sourceforge.net \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).