2.5.8-pre1 wavelan_cs
PATCH 1/1 2.5.8-pre1 wavelan_cs
not sure if i did this right, so if you
have any suggestions/comments please tell me.
Basically 2.5.8-pre1 fails to compile with:
In file included from wavelan_cs.c:59:
wavelan_cs.p.h:495:33: warning: extra tokens at end of #undef directive wavelan_cs.c: In function `wv_pcmcia_config':
wavelan_cs.c:4480: structure has no member named rmem_start' wavelan_cs.c:4482: structure has no member named rmem_end' make[3]: *** [wavelan_cs.o] Error 1
due to the removal of rmem_{start,end} from net_device. here is the patch [tested]:
drivers/net/wireless/wavelan_cs.c Thu Apr 4 13:17:43 2002 renamed from drivers/net/wireless/wavelan_cs.c Tue Mar 19 05:37:16 2002 +4 -2
@@ -4383,6 +4383,7 @@ tuple_t tuple; cisparse_t parse; struct net_device * dev; + struct net_local * lp; int i; u_char buf[64]; win_req_t req;
@@ -4390,6 +4391,7 @@ handle = link->handle; dev = (device *) link->priv; + lp = (net_local *)dev->priv; #ifdef DEBUG_CONFIG_TRACE printk(KERN_DEBUG "->wv_pcmcia_config(0x%p)\n", link);
@@ -4477,9 +4479,9 @@ break; } - dev->rmem_start = dev->mem_start = + lp->rmem_start = dev->mem_start = (u_long)ioremap(req.Base, req.Size); - dev->rmem_end = dev->mem_end = dev->mem_start + req.Size; + lp->rmem_end = dev->mem_end = dev->mem_start + req.Size; mem.CardOffset = 0; mem.Page = 0; i = CardServices(MapMemPage, link->win, &mem);
drivers/net/wireless/wavelan_cs.p.h Thu Apr 4 14:05:43 2002 renamed from drivers/net/wireless/wavelan_cs.p.h Tue Mar 19 05:37:09 2002 +3 -0
@@ -638,6 +638,9 @@ int rfp; /* Last DMA machine receive pointer */ int overrunning; /* Receiver overrun flag */ + unsigned long rmem_start; + unsigned long rmem_end; + #ifdef WIRELESS_EXT iw_stats wstats; /* Wireless specific stats */ #endif
Signature · 1 line
----
Quoted 1 line · On Thu, 2002-04-04 at 01:54, [email protected] wrote:
wavelan_cs.p.h:495:33: warning: extra tokens at end of #undef directive
Good ... and the attached patch will fix the warning wrt trailing tokens after the undef.
Robert Love
drivers/net/wireless/wavelan_cs.p.h +1 -1
@@ -492,7 +492,7 @@#undef DEBUG_RX_INFO/* Header of the transmitted packet */ #undef DEBUG_RX_FAIL/* Normal failure conditions */ #define DEBUG_RX_ERROR /* Unexpected conditions */ -#undef DEBUG_PACKET_DUMP 32/* Dump packet on the screen */ +#undef DEBUG_PACKET_DUMP/* Dump packet on the screen */ #undef DEBUG_IOCTL_TRACE/* Misc call by Linux */ #undef DEBUG_IOCTL_INFO/* Various debug info */ #define DEBUG_IOCTL_ERROR /* What's going wrong */
Quoted 10 lines · [email protected] wrote:
not sure if i did this right, so if you have any suggestions/comments please tell me.
Basically 2.5.8-pre1 fails to compile with:
In file included from wavelan_cs.c:59:
wavelan_cs.p.h:495:33: warning: extra tokens at end of #undef directivewavelan_cs.c: In function `wv_pcmcia_config':
wavelan_cs.c:4480: structure has no member namedrmem_start' wavelan_cs.c:4482: structure has no member namedrmem_end' make[3]: *** [wavelan_cs.o] Error 1
not needed, just delete the unused references to rmem_{start,end}. (see attached patch)
Jeff
drivers/net/wireless/wavelan_cs.c +2 -3
@@ -4477,9 +4477,8 @@break ; } - dev->rmem_start = dev->mem_start = - (u_long )ioremap (req.Base, req.Size); - dev->rmem_end = dev->mem_end = dev->mem_start + req.Size; + dev->mem_start = (u_long )ioremap (req.Base, req.Size); + dev->mem_end = dev->mem_start + req.Size; mem.CardOffset =0 ; mem.Page =0 ; i =CardServices (MapMemPage, link->win, &mem);
Quoted 13 lines · Jeff Garzik
Quoted 11 lines · [email protected] wrote:
not sure if i did this right, so if you
have any suggestions/comments please tell me.Basically 2.5.8-pre1 fails to compile with:
In file included from wavelan_cs.c:59:
wavelan_cs.p.h:495:33: warning: extra tokens at end of #undef directivewavelan_cs.c: In function `wv_pcmcia_config':
wavelan_cs.c:4480: structure has no member namedrmem_start' wavelan_cs.c:4482: structure has no member namedrmem_end' make[3]: *** [wavelan_cs.o] Error 1
Quoted 4 lines
not needed, just delete the unused references to rmem_{start,end}. (see attached patch)
Jeff
Correct. It was just information displayed by ifconfig. Jeff, will you take care of it or do you need an "official"
patch (I would just resend your patch + the one of Robert).
Thanks... Jean
Quoted 18 lines · Jean Tourrilhes
Quoted 16 lines · Jeff Garzik
Quoted 11 lines · [email protected] wrote:
not sure if i did this right, so if you have any suggestions/comments please tell me.
Basically 2.5.8-pre1 fails to compile with:
In file included from wavelan_cs.c:59:
wavelan_cs.p.h:495:33: warning: extra tokens at end of #undef directivewavelan_cs.c: In function `wv_pcmcia_config':
wavelan_cs.c:4480: structure has no member namedrmem_start' wavelan_cs.c:4482: structure has no member namedrmem_end' make[3]: *** [wavelan_cs.o] Error 1not needed, just delete the unused references to rmem_{start,end}. (see attached patch)
Quoted 6 lines
Quoted 2 lines
Jeff
Correct. It was just information displayed by ifconfig. Jeff, will you take care of it or do you need an "official"
patch (I would just resend your patch + the one of Robert).
I've already taken care of it, in fact :)
Jeff