* [PATCH][2.4.28-pre3] RIVA driver gcc-3.4 fix
@ 2004-09-12 11:34 Mikael Pettersson
0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2004-09-12 11:34 UTC (permalink / raw)
To: ajoshi, ajoshi, marcelo.tosatti; +Cc: linux-kernel
This patch fixes a gcc-3.4 cast-as-lvalue warning in the 2.4.28-pre3
kernel's RIVA video driver. The change is new since the 2.6 code is
different.
/Mikael
--- linux-2.4.28-pre3/drivers/video/riva/accel.c.~1~ 2004-08-08 10:56:31.000000000 +0200
+++ linux-2.4.28-pre3/drivers/video/riva/accel.c 2004-09-12 01:56:20.000000000 +0200
@@ -153,8 +153,10 @@
for (j = 0; j < cnt; j++) {
if (w <= 8)
cdat2 = *cdat++;
- else
- cdat2 = *((u16*)cdat)++;
+ else {
+ cdat2 = *(u16*)cdat;
+ cdat += sizeof(u16);
+ }
fbcon_reverse_order(&cdat2);
d[j] = cdat2;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-12 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-12 11:34 [PATCH][2.4.28-pre3] RIVA driver gcc-3.4 fix Mikael Pettersson
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).