Commit 70e1ecf4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: drivers/video/riva/fbdev.c

drivers/video/riva/fbdev.c: In function `rivafb_load_cursor_image':
drivers/video/riva/fbdev.c:498: error: invalid lvalue in increment
drivers/video/riva/fbdev.c:499: error: invalid lvalue in increment
drivers/video/riva/fbdev.c: In function `rivafb_imageblit':
drivers/video/riva/fbdev.c:1440: error: invalid lvalue in increment
drivers/video/riva/fbdev.c:1449: error: invalid lvalue in increment
parent a19e6c6b
......@@ -495,8 +495,10 @@ static void rivafb_load_cursor_image(struct riva_par *par, u8 *data,
u32 b, m, tmp;
for (i = 0; i < h; i++) {
b = *((u32 *)data)++;
m = *((u32 *)mask)++;
b = *((u32 *)data);
b = (u32)((u32 *)b + 1);
m = *((u32 *)mask);
m = (u32)((u32 *)m + 1);
reverse_order(&b);
for (j = 0; j < w/2; j++) {
......@@ -1437,7 +1439,8 @@ static void rivafb_imageblit(struct fb_info *info,
while (size >= 16) {
RIVA_FIFO_FREE(par->riva, Bitmap, 16);
for (i = 0; i < 16; i++) {
tmp = *((u32 *)cdat)++;
tmp = *((u32 *)cdat);
cdat = (u8 *)((u32 *)cdat + 1);
reverse_order(&tmp);
d[i] = tmp;
}
......@@ -1446,7 +1449,8 @@ static void rivafb_imageblit(struct fb_info *info,
if (size) {
RIVA_FIFO_FREE(par->riva, Bitmap, size);
for (i = 0; i < size; i++) {
tmp = *((u32 *) cdat)++;
tmp = *((u32 *) cdat);
cdat = (u8 *)((u32 *)cdat + 1);
reverse_order(&tmp);
d[i] = tmp;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment