Specialix RIO driver gcc-3.4 fixes
PATCH 1/1 Specialix RIO driver gcc-3.4 fixes
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
drivers/char/rio/rio_linux.c renamed from drivers/char/rio/rio_linux.c.~1~ +3 -3
@@ -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
Quoted 4 lines · Mikael Pettersson
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.