From: Mikael Pettersson <mikpe@csd.uu.se>
To: R.E.Wolff@BitWizard.nl, marcelo.tosatti@cyclades.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][2.4.28-pre3] Specialix RIO driver gcc-3.4 fixes
Date: Sun, 12 Sep 2004 13:31:00 +0200 (MEST) [thread overview]
Message-ID: <200409121131.i8CBV09H015246@harpo.it.uu.se> (raw)
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
next reply other threads:[~2004-09-12 11:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-12 11:31 Mikael Pettersson [this message]
2004-09-14 18:29 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200409121131.i8CBV09H015246@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=R.E.Wolff@BitWizard.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®