Mailing List archive

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

[linux-dvb] Re: Can't compile saa7146_fops.c



On Tue, 16 Nov 2004 09:38:42 +0100
"Kilian A. Foth" <foth@informatik.uni-hamburg.de> wrote:

> This make fails:
> 
>   CC [M]  /usr/src/dvb-kernel/build-2.6/saa7146_fops.o
> /usr/src/dvb-kernel/build-2.6/saa7146_fops.c: In function `fops_poll':
> /usr/src/dvb-kernel/build-2.6/saa7146_fops.c:361: warning: passing arg 3 of
> `videobuf_poll_stream' from incompatible pointer
> type/usr/src/dvb-kernel/build-2.6/saa7146_fops.c:361: error: too few
> arguments to function `videobuf_poll_stream' make[2]: ***
> [/usr/src/dvb-kernel/build-2.6/saa7146_fops.o] Error 1 make[1]: ***
> [_module_/usr/src/dvb-kernel/build-2.6] Error 2 make[1]: Leaving directory
> `/usr/src/linux-2.6.9-dvbt' make: *** [all] Error 2
> 
> 
> It seems to me that several places check the kernel version via 
> 
>    #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
> 
> to see whether to call the three-argument or the four-argument version
> of functions. But as far as I can see the change to video_buf.h
> happened between 2.6.8 and 2.6.9, not 2.6.10. Should the 10 here read 9,
> or do I have a wrong version of something? Or am I terribly
> misunderstanding something entirely other?

A quick and dirty fix is to change that #if line to:

#if 0//(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))


Peter.




Home | Main Index | Thread Index