Re: bttv 0.7.106: remap_page_range error while compiling on RedHat 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This little problem is because the mmap() interfaces have changed under RH9.  
Basically as you noticed under RH9 the driver now takes 5 arguments instead 
of 4.

What's happend is that when you've applied the updated bttv patch its put the 
orignal interface calls back.

This should be fairly simple to fix.  Make sure the mmap() function definition 
looks like this:

static int do_bttv_mmap(struct vm_area_struct *vma, struct bttv *btv, const 
char *adr, unsigned long size)

and then make sure any remap_page_range() calls have 'vma' as their first 
argument.  Insert it if they don't.

That's all that there should be to it.

I had a similar problem with the usbvision drivers under RH9, but I managed to 
get them working without too much hassle.

Cameron





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux