Re: compile comedi-0.7.66 under redhat9.0 error message...

On Thursday 12 June 2003 14:04, Charles-Edouard Ruault wrote:
> >comedi_fops.c: In function `comedi_mmap_v22':
> >comedi_fops.c:1269: warning: passing arg 1 of `remap_page_range' makes
> >pointer from integer without a cast
> >comedi_fops.c:1269: incompatible type for argument 4 of
> >`remap_page_range'
> >comedi_fops.c:1269: too few arguments to function `remap_page_range'
> >make[1]: *** [comedi_fops.o] Error 1
> >make[1]: Leaving directory `/root/work/comedi/comedi-0.7.66/comedi'

I'm not using comedi for a long time, but saw this message and thought I 
should warn a little about this.

This problem is caused by redhat who included 2.5 patches in their 2.4 kernel.
The remap_page_range function in redhat 9 takes one more argument than for 
other 2.4 kernels.

It's probably not a good idea to fix this in your cvs unless you manage to 
detect specifically redhat 9 kernel in your code (seems a bad idea to me).

I found this problem just after the redhat 9 release when I had problems with 
other drivers (dxr3, see mailing list of project dxr3.sf.net).

Hopefully helpfull to you in some way.

regards,
Marcel

Received on 2003-06-12Z14:59:35