[MPlayer-users] mga_vid driver: compilation error with remap_page_range

Derek bulk at qmechanic.co.uk
Fri Oct 3 02:21:48 CEST 2003


Hi,

It appears that there is an error in drivers/mga_vid.c.
The compiler complains that the function remap_page_range() need more 
than 4 arguments.

In the code, the function is given 5 arguments if the kernel is >= 
2.5.3. It seems to apply to my 2.4.20 kernel source too.

 From /usr/src/linux/include/linux/mm.h:
extern int remap_page_range(struct vm_area_struct *vma, unsigned long 
from, unsigned long to, unsigned long size, pgprot_t prot);

Unfortunately, I do not have older kernel source files to see when this 
change happened...

Regards
Derek

Error message
-------------
cc -O2  -D__KERNEL__  -DMODULE           -include 
/usr/src/linux/include/linux/modversions.h -Wall 
-I/usr/src/linux/include -c mga_vid.c
mga_vid.c: In function `mga_vid_mmap':
mga_vid.c:1469: warning: passing arg 1 of 
`remap_page_range_Rsmp_f94c6c0e' makes pointer from integer without a cast
mga_vid.c:1469: incompatible type for argument 4 of 
`remap_page_range_Rsmp_f94c6c0e'
mga_vid.c:1469: too few arguments to function 
`remap_page_range_Rsmp_f94c6c0e'
make: *** [mga_vid.o] Error 1

I am using a RedHat 9 kernel (2.4.20-20.9smp) and gcc-3.2.2



More information about the MPlayer-users mailing list