mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2.4.28-pre3] WANPIPE/SDLA driver gcc-3.4 fixes
@ 2004-09-12 11:27 Mikael Pettersson
  2004-09-14 18:28 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2004-09-12 11:27 UTC (permalink / raw)
  To: dm, marcelo.tosatti, ncorbic; +Cc: linux-kernel

This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.4.28-pre3
kernel's WANPIPE/SDLA net drivers. The 2.6 version of the code has
not been fixed for gcc-3.4, so the changes are all new.

/Mikael

--- linux-2.4.28-pre3/drivers/net/wan/sdla_fr.c.~1~	2003-11-29 00:28:12.000000000 +0100
+++ linux-2.4.28-pre3/drivers/net/wan/sdla_fr.c	2004-09-12 01:56:20.000000000 +0200
@@ -3929,7 +3929,7 @@
                                 break;
                         }
 
-			(void *)ptr_trc_el = card->u.f.curr_trc_el;
+			ptr_trc_el = (void *)card->u.f.curr_trc_el;
 
                         buffer_length = 0;
 			fr_udp_pkt->data[0x00] = 0x00;
@@ -3980,7 +3980,7 @@
                                
 				ptr_trc_el ++;
 				if((void *)ptr_trc_el > card->u.f.trc_el_last)
-					(void*)ptr_trc_el = card->u.f.trc_el_base;
+					ptr_trc_el = (void*)card->u.f.trc_el_base;
 
 				buffer_length += sizeof(fpipemon_trc_hdr_t);
                                	if(fpipemon_trc->fpipemon_trc_hdr.data_passed) {
--- linux-2.4.28-pre3/drivers/net/wan/sdladrv.c.~1~	2001-09-23 21:06:34.000000000 +0200
+++ linux-2.4.28-pre3/drivers/net/wan/sdladrv.c	2004-09-12 01:56:20.000000000 +0200
@@ -1002,7 +1002,7 @@
                         peek_by_4 ((unsigned long)hw->dpmbase + curpos, buf,
 				curlen);
                         addr       += curlen;
-                        (char*)buf += curlen;
+                        buf         = (char*)buf + curlen;
                         len        -= curlen;
                 }
 
@@ -1086,7 +1086,7 @@
                         poke_by_4 ((unsigned long)hw->dpmbase + curpos, buf,
 				curlen);
 	                addr       += curlen;
-                        (char*)buf += curlen;
+                        buf         = (char*)buf + curlen;
                         len        -= curlen;
                 }
 
@@ -2130,7 +2130,7 @@
 	(void *)hw->dpmbase = ioremap((unsigned long)S514_mem_base_addr,
 		(unsigned long)MAX_SIZEOF_S514_MEMORY);
     	/* map the physical control register memory to virtual memory */
-	(void *)hw->vector = ioremap(
+	hw->vector = (unsigned long)ioremap(
 		(unsigned long)(S514_mem_base_addr + S514_CTRL_REG_BYTE),
 		(unsigned long)16);
      
--- linux-2.4.28-pre3/drivers/net/wan/sdlamain.c.~1~	2003-11-29 00:28:12.000000000 +0100
+++ linux-2.4.28-pre3/drivers/net/wan/sdlamain.c	2004-09-12 01:56:20.000000000 +0200
@@ -1027,7 +1027,7 @@
                       #endif
                         dump.length     -= len;
                         dump.offset     += len;
-                        (char*)dump.ptr += len;
+                        dump.ptr         = (char*)dump.ptr + len;
                 }
 		
                 sdla_mapmem(&card->hw, oldvec);/* restore DPM window position */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][2.4.28-pre3] WANPIPE/SDLA driver gcc-3.4 fixes
  2004-09-12 11:27 [PATCH][2.4.28-pre3] WANPIPE/SDLA driver gcc-3.4 fixes Mikael Pettersson
@ 2004-09-14 18:28 ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2004-09-14 18:28 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: dm, ncorbic, linux-kernel

On Sun, Sep 12, 2004 at 01:27:53PM +0200, Mikael Pettersson wrote:
> This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.4.28-pre3
> kernel's WANPIPE/SDLA net drivers. The 2.6 version of the code has
> not been fixed for gcc-3.4, so the changes are all new.

What about getting them in v2.6?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-14 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-12 11:27 [PATCH][2.4.28-pre3] WANPIPE/SDLA driver gcc-3.4 fixes Mikael Pettersson
2004-09-14 18:28 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®