You might be using redhat 9 and the function prototypes have change and
require one extra parameter
try this, don't know if its the same problem I had but it might be...
bttv-driver.c
line 2187
change to:
static int do_bttv_mmap(struct vm_area_struct *vma, struct bttv *btv,
const char *adr, unsigned long size)
line 2210
change to:
static int bttv_mmap(struct vm_area_struct *vma,struct video_device
*dev, const char *adr, unsigned long size)
line 2215
change to:
r=do_bttv_mmap(vma, btv, adr, size);
Gennady Yakubovich wrote:
Hi List.
I am trying to compile bttv-0.7.106.
I have following errors:
bttv-driver.c: In function `do_bttv_mmap':
bttv-driver.c:2201: warning: passing arg 1 of `remap_page_range_Rsmp_d8cd9cb2' makes pointer from integer without a cast
bttv-driver.c:2201: incompatible type for argument 4 of `remap_page_range_Rsmp_d8cd9cb2'
bttv-driver.c:2201: too few arguments to function `remap_page_range_Rsmp_d8cd9cb2'
bttv-driver.c: At top level:
bttv-driver.c:2233: warning: initialization from incompatible pointer type
make[3]: *** [bttv-driver.o] Error 1
make[3]: Leaving directory `/home/gennady/download/bttv-0.7.106/driver'
make[2]: *** [_mod_/home/gennady/download/bttv-0.7.106/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/gennady/download/bttv-0.7.106/driver'
make: *** [default] Error 2
What is wrong with that?
Any help will be appreciated.
Gennady Yakubovich
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list