Skip to contentSkip to conversation

backport 2.6 changes to 2.4

PATCH New Shmulik Hen 1 participant 1 message Aug 8, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 backport 2.6 changes to 2.4

Export alloc_netdev()

drivers/net/net_init.c +2 -1
diff -Nuarp linux-2.4.22-rc1/drivers/net/net_init.c linux-2.4.22-rc1-devel/drivers/net/net_init.c
@@ -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)
 {
include/linux/netdevice.h +2 -0
diff -Nuarp linux-2.4.22-rc1/include/linux/netdevice.h linux-2.4.22-rc1-devel/include/linux/netdevice.h
@@ -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 */
Signature · 4 lines
| Shmulik Hen   Advanced Network Services  |
| Israel Design Center, Jerusalem          |
| LAN Access Division, Platform Networking |
| Intel Communications Group, Intel corp.  |