Commit 20b3efb7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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

drivers/video/cfbimgblt.c: In function `color_imageblit':
drivers/video/cfbimgblt.c:140: error: invalid lvalue in assignment
drivers/video/cfbimgblt.c: In function `slow_imageblit':
drivers/video/cfbimgblt.c:206: error: invalid lvalue in assignment
parent 70e1ecf4
...@@ -136,8 +136,7 @@ static inline void color_imageblit(const struct fb_image *image, ...@@ -136,8 +136,7 @@ static inline void color_imageblit(const struct fb_image *image,
dst1 += p->fix.line_length; dst1 += p->fix.line_length;
if (pitch_index) { if (pitch_index) {
dst2 += p->fix.line_length; dst2 += p->fix.line_length;
dst1 = (char *) dst2; dst1 = (u8 *)((long)dst2 & ~(sizeof(u32) - 1));
(unsigned long) dst1 &= ~(sizeof(u32) - 1);
start_index += pitch_index; start_index += pitch_index;
start_index &= 32 - 1; start_index &= 32 - 1;
...@@ -202,9 +201,7 @@ static inline void slow_imageblit(const struct fb_image *image, struct fb_info * ...@@ -202,9 +201,7 @@ static inline void slow_imageblit(const struct fb_image *image, struct fb_info *
src += spitch; src += spitch;
if (pitch_index) { if (pitch_index) {
dst2 += pitch; dst2 += pitch;
dst1 = (char *) dst2; dst1 = (u8 *)((long)dst2 & ~(sizeof(u32) - 1));
(unsigned long) dst1 &= ~(sizeof(u32) - 1);
start_index += pitch_index; start_index += pitch_index;
start_index &= 32 - 1; start_index &= 32 - 1;
} }
......
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