lkml.org 
[lkml]   [2000]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectlinux-2.4.0-test7 bug
Date
Hi,

Compiling linux kernel using gcc-2.95.2 I've received some errors in emd.c
file. That was in 145 line and similar bug in 264 line.

gcc has problems with binary - :

int part = (page_address(page) + PAGE_CACHE_SIZE) - p->spare;

I think that there must be explicit casting to int, like this:

int part = (int)(page_address(page) + PAGE_CACHE_SIZE) - (int)p->spare;

and there won't be errors in compile time.

BFN
Maciej Hrebien


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.038 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site