* [PATCH 2.6.27-rc1]: fix NE2000 linkage error
@ 2008-07-30 11:44 Mikael Pettersson
2008-07-30 14:04 ` Alan Cox
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mikael Pettersson @ 2008-07-30 11:44 UTC (permalink / raw)
To: alan; +Cc: linux-kernel, netdev
Trying to build with CONFIG_NE2000=m fails with:
scripts/mod/modpost -o /tmp/tmp/linux-2.6.27-rc1/Module.symvers -S -s
ERROR: "NS8390_init" [drivers/net/ne.ko] undefined!
This is because the split of 8390 into pausing and non-pausing
versions was incompletely propagated to ne.c. This fixes it.
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
---
--- linux-2.6.27-rc1/drivers/net/ne.c.~1~ 2008-07-29 10:40:11.000000000 +0200
+++ linux-2.6.27-rc1/drivers/net/ne.c 2008-07-30 13:17:16.000000000 +0200
@@ -536,7 +536,7 @@ static int __init ne_probe1(struct net_d
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = eip_poll;
#endif
- NS8390_init(dev, 0);
+ NS8390p_init(dev, 0);
ret = register_netdev(dev);
if (ret)
@@ -794,7 +794,7 @@ retry:
if (time_after(jiffies, dma_start + 2*HZ/100)) { /* 20ms */
printk(KERN_WARNING "%s: timeout waiting for Tx RDC.\n", dev->name);
ne_reset_8390(dev);
- NS8390_init(dev,1);
+ NS8390p_init(dev, 1);
break;
}
@@ -855,7 +855,7 @@ static int ne_drv_resume(struct platform
if (netif_running(dev)) {
ne_reset_8390(dev);
- NS8390_init(dev, 1);
+ NS8390p_init(dev, 1);
netif_device_attach(dev);
}
return 0;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.27-rc1]: fix NE2000 linkage error
2008-07-30 11:44 [PATCH 2.6.27-rc1]: fix NE2000 linkage error Mikael Pettersson
@ 2008-07-30 14:04 ` Alan Cox
2008-07-30 17:55 ` Jeff Garzik
2008-07-30 21:15 ` Jeff Garzik
2 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2008-07-30 14:04 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linux-kernel, netdev
On Wed, 30 Jul 2008 13:44:55 +0200 (MEST)
Mikael Pettersson <mikpe@it.uu.se> wrote:
> Trying to build with CONFIG_NE2000=m fails with:
Yes I've sent patches to fix this to Jeff a couple of times.
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.27-rc1]: fix NE2000 linkage error
2008-07-30 11:44 [PATCH 2.6.27-rc1]: fix NE2000 linkage error Mikael Pettersson
2008-07-30 14:04 ` Alan Cox
@ 2008-07-30 17:55 ` Jeff Garzik
2008-07-30 21:15 ` Jeff Garzik
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2008-07-30 17:55 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: alan, linux-kernel, netdev
Mikael Pettersson wrote:
> Trying to build with CONFIG_NE2000=m fails with:
>
> scripts/mod/modpost -o /tmp/tmp/linux-2.6.27-rc1/Module.symvers -S -s
> ERROR: "NS8390_init" [drivers/net/ne.ko] undefined!
>
> This is because the split of 8390 into pausing and non-pausing
> versions was incompletely propagated to ne.c. This fixes it.
>
> Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
> ---
>
> --- linux-2.6.27-rc1/drivers/net/ne.c.~1~ 2008-07-29 10:40:11.000000000 +0200
> +++ linux-2.6.27-rc1/drivers/net/ne.c 2008-07-30 13:17:16.000000000 +0200
> @@ -536,7 +536,7 @@ static int __init ne_probe1(struct net_d
> #ifdef CONFIG_NET_POLL_CONTROLLER
> dev->poll_controller = eip_poll;
> #endif
> - NS8390_init(dev, 0);
> + NS8390p_init(dev, 0);
>
> ret = register_netdev(dev);
> if (ret)
> @@ -794,7 +794,7 @@ retry:
> if (time_after(jiffies, dma_start + 2*HZ/100)) { /* 20ms */
> printk(KERN_WARNING "%s: timeout waiting for Tx RDC.\n", dev->name);
> ne_reset_8390(dev);
> - NS8390_init(dev,1);
> + NS8390p_init(dev, 1);
> break;
> }
>
> @@ -855,7 +855,7 @@ static int ne_drv_resume(struct platform
>
> if (netif_running(dev)) {
> ne_reset_8390(dev);
> - NS8390_init(dev, 1);
> + NS8390p_init(dev, 1);
> netif_device_attach(dev);
Yep, already got this one, but thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.27-rc1]: fix NE2000 linkage error
2008-07-30 11:44 [PATCH 2.6.27-rc1]: fix NE2000 linkage error Mikael Pettersson
2008-07-30 14:04 ` Alan Cox
2008-07-30 17:55 ` Jeff Garzik
@ 2008-07-30 21:15 ` Jeff Garzik
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2008-07-30 21:15 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: alan, linux-kernel, netdev
Mikael Pettersson wrote:
> Trying to build with CONFIG_NE2000=m fails with:
>
> scripts/mod/modpost -o /tmp/tmp/linux-2.6.27-rc1/Module.symvers -S -s
> ERROR: "NS8390_init" [drivers/net/ne.ko] undefined!
>
> This is because the split of 8390 into pausing and non-pausing
> versions was incompletely propagated to ne.c. This fixes it.
>
> Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
actually, I take that back, I still needed a bit of this. thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-30 21:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 11:44 [PATCH 2.6.27-rc1]: fix NE2000 linkage error Mikael Pettersson
2008-07-30 14:04 ` Alan Cox
2008-07-30 17:55 ` Jeff Garzik
2008-07-30 21:15 ` Jeff Garzik
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).