* [PATCH][2.4.28-pre3] Specialix RIO driver gcc-3.4 fixes
@ 2004-09-12 11:31 Mikael Pettersson
2004-09-14 18:29 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2004-09-12 11:31 UTC (permalink / raw)
To: R.E.Wolff, marcelo.tosatti; +Cc: linux-kernel
This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.4.28-pre3
kernel's Specialix RIO driver. 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/char/rio/rio_linux.c.~1~ 2002-02-26 13:26:56.000000000 +0100
+++ linux-2.4.28-pre3/drivers/char/rio/rio_linux.c 2004-09-12 01:56:20.000000000 +0200
@@ -1206,7 +1206,7 @@
if (((1 << hp->Ivec) & rio_irqmask) == 0)
hp->Ivec = 0;
hp->CardP = (struct DpRam *)
- hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
+ (hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN));
hp->Type = RIO_PCI;
hp->Copy = rio_pcicopy;
hp->Mode = RIO_PCI_BOOT_FROM_RAM;
@@ -1278,7 +1278,7 @@
hp->Ivec = 0;
hp->Ivec |= 0x8000; /* Mark as non-sharable */
hp->CardP = (struct DpRam *)
- hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
+ (hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN));
hp->Type = RIO_PCI;
hp->Copy = rio_pcicopy;
hp->Mode = RIO_PCI_BOOT_FROM_RAM;
@@ -1330,7 +1330,7 @@
/* There was something about the IRQs of these cards. 'Forget what.--REW */
hp->Ivec = 0;
hp->CardP = (struct DpRam *)
- hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
+ (hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN));
hp->Type = RIO_AT;
hp->Copy = rio_pcicopy; /* AT card PCI???? - PVDL
* -- YES! this is now a normal copy. Only the
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][2.4.28-pre3] Specialix RIO driver gcc-3.4 fixes
2004-09-12 11:31 [PATCH][2.4.28-pre3] Specialix RIO driver gcc-3.4 fixes Mikael Pettersson
@ 2004-09-14 18:29 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2004-09-14 18:29 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: R.E.Wolff, linux-kernel
On Sun, Sep 12, 2004 at 01:31:00PM +0200, Mikael Pettersson wrote:
> This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.4.28-pre3
> kernel's Specialix RIO driver. The 2.6 version of the code has not
> been fixed for gcc-3.4, so the changes are all new.
>
Hi Mikael
Get them in v2.6, too.
Trivial enough to be applied in v2.4.
^ 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:31 [PATCH][2.4.28-pre3] Specialix RIO driver gcc-3.4 fixes Mikael Pettersson
2004-09-14 18:29 ` Marcelo Tosatti
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).