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 --- drivers/video/cfbimgblt.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff -puN drivers/video/cfbimgblt.c~gcc-35-video-cfbimgblt drivers/video/cfbimgblt.c --- 25/drivers/video/cfbimgblt.c~gcc-35-video-cfbimgblt 2004-01-23 23:24:42.000000000 -0800 +++ 25-akpm/drivers/video/cfbimgblt.c 2004-01-23 23:26:33.000000000 -0800 @@ -136,8 +136,7 @@ static inline void color_imageblit(const dst1 += p->fix.line_length; if (pitch_index) { dst2 += p->fix.line_length; - dst1 = (char *) dst2; - (unsigned long) dst1 &= ~(sizeof(u32) - 1); + dst1 = (u8 *)((long)dst2 & ~(sizeof(u32) - 1)); start_index += pitch_index; start_index &= 32 - 1; @@ -202,9 +201,7 @@ static inline void slow_imageblit(const src += spitch; if (pitch_index) { dst2 += pitch; - dst1 = (char *) dst2; - (unsigned long) dst1 &= ~(sizeof(u32) - 1); - + dst1 = (u8 *)((long)dst2 & ~(sizeof(u32) - 1)); start_index += pitch_index; start_index &= 32 - 1; } _