Warnings compiling 2.3.9 on Alpha

Matthias Welwarsky (matze@stud.fbi.fh-darmstadt.de)
Thu, 01 Jul 1999 11:12:00 +0200


Hi there,

I got the following output while compiling linux-2.3.9 on my alpha.
Cannot quite decide whether it's lethal or not. Seems that there are
typecasts from a pointer (64bit) to an int (32bit). A quick look shows
that the TryLockPage/UnlockPage seem to be the cause...

output from gcc:
gcc -D__KERNEL__ -I/usr/src/linux-devel/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs
-ffixed-8 -mcpu=ev4 -c -o filemap.o filemap.c
filemap.c: In function `invalidate_inode_pages':
filemap.c:112: warning: cast from pointer to integer of different size
filemap.c:124: warning: cast from pointer to integer of different size
filemap.c: In function `truncate_inode_pages':
filemap.c:167: warning: cast from pointer to integer of different size
filemap.c:207: warning: cast from pointer to integer of different size
filemap.c: In function `shrink_mmap':
filemap.c:283: warning: cast from pointer to integer of different size
filemap.c:339: warning: cast from pointer to integer of different size
filemap.c:345: warning: cast from pointer to integer of different size
filemap.c: In function `do_buffer_fdatasync':
filemap.c:431: warning: cast from pointer to integer of different size
filemap.c: In function `__add_to_page_cache':
filemap.c:466: warning: cast from pointer to integer of different size
filemap.c: In function `lock_page':
filemap.c:565: warning: cast from pointer to integer of different size
filemap.c:573: warning: cast from pointer to integer of different size
filemap.c: In function `__find_lock_page':
filemap.c:655: warning: cast from pointer to integer of different size
filemap.c: In function `do_generic_file_read':
filemap.c:1055: warning: cast from pointer to integer of different size
filemap.c: In function `filemap_nopage':
filemap.c:1329: warning: cast from pointer to integer of different size
filemap.c: In function `do_write_page':
filemap.c:1468: warning: cast from pointer to integer of different size
filemap.c: In function `generic_file_write':
filemap.c:1872: warning: cast from pointer to integer of different size
filemap.c:1880: warning: cast from pointer to integer of different size
filemap.c: In function `put_cached_page':
filemap.c:1914: warning: cast from pointer to integer of different size

--
Two OS engineers facing a petri net chart:
	"dead lock in four moves!"

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