problem with "remap_page_range"

From: Luca M (lm76727_at_blu.it)
Date: 01/28/04


Date: 28 Jan 2004 04:17:27 -0800

Hi all,
I have a simple module that map kernel memory in user-space. I have
changed my kernel (passing from 2.4.18-3 to 2.4.20-8) and when I
compile my modules I have this message from gcc.

        gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -I.. -O -c
-o
                esw-2S.o esw-2S.c
        esw-2S.c: In function `esw_L2_mmap':
        esw-2S.c:839: warning: passing arg 1 of `remap_page_range' makes
                pointer from integer without a cast
        esw-2S.c:839: incompatible type for argument 4 of `remap_page_range'
        esw-2S.c:839: too few arguments to function `remap_page_range'
        make: *** [esw-2S.o] Error 1

Whit version 2.4.18-3 I haven't problems. What is changed?