[pvrusb2] New driver snapshot: pvrusb2-mci-20100424

JE Geiger james.e.geiger at gmail.com
Sat Apr 24 20:17:40 CDT 2010


Got it.  Makes sense with kmalloc define being missing.

I did a diff between the April 24 stuff you just published and the
in-tree pvrusb2 stuff and there were quite a few additions.  Will
these changes migrate over to the kernel tree after a time?  I guess I
am not clear on the process, but it looks like there is some editing
between what is stand alone and what is in-tree.  Off to add the
include.

On Sat, Apr 24, 2010 at 9:14 PM, Mike Isely <isely at isely.net> wrote:
>
> OK, turns out it's only a single line change needed:
>
> isely at ivanova:~/work2/pvrusb2/w1/pvrusb2/driver$ svn diff
> Index: pvrusb2-v4l2.c
> ===================================================================
> --- pvrusb2-v4l2.c      (revision 2452)
> +++ pvrusb2-v4l2.c      (working copy)
> @@ -22,6 +22,7 @@
>
>  #include "pvrusb2-options.h"
>  #include <linux/kernel.h>
> +#include <linux/slab.h>
>  #include <linux/version.h>
>  #include "pvrusb2-context.h"
>  #include "pvrusb2-hdw.h"
>
>
> In other words, insert an include of linux/slab.h right after
> linux/kernel.h in pvrusb2-v4l2.c and you should get a clean build.
>
> What fun.
>
>  -Mike
>
>
> On Sat, 24 Apr 2010, Mike Isely wrote:
>
>>
>> It looks like indeed there are missing header includes that are needed
>> for 2.6.34.  The changes are already in the in-kernel pvrusb2 driver but
>> it seems that the v4l-dvb team is being slow in propagating these back
>> into the Mercurial repository, which is why I haven't seen them yet.
>> Rather than additional back and forth steps here, how about anyone who
>> is interested just jump into #pvrusb2 on IRC and we'll sort this out?
>>
>> The fact that the Mercurial v4l-dvb repository, due to this, probably
>> doesn't compile either for 2.6.34-rc5 - and since I'm guessing that
>> these changes have probably been in there for a little while now - makes
>> me worry about how well that repo is being kept up, which may force me
>> over to git sooner rather than later :-(
>>
>> In any case once it's straightened out there will have to be another
>> standalone driver release to maintain compatibility with 2.6.34.
>>
>>   -Mike
>>
>>
>> On Sat, 24 Apr 2010, JE Geiger wrote:
>>
>> > Just did a clean reinstall of rc5 from the bz2 image from kernel.org.
>> >
>> > Did a complete compile.  I can post the .config if need be, but it
>> > worked earlier when I was using the in-tree pvrusb2 (and it is the
>> > same as before, just copied over .config and did a "make oldconfig" on
>> > the clean rc5 tree).
>> >
>> > Then changed to the snapshot driver directory:
>> >
>> > same problem with compile:
>> >
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
>> > function ‘pvr2_v4l2_destroy_no_lock’:
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1150:
>> > error: implicit declaration of function ‘kfree’
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
>> > function ‘pvr2_v4l2_open’:
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1274:
>> > error: implicit declaration of function ‘kzalloc’
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1274:
>> > warning: assignment makes pointer from integer without a cast
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1314:
>> > warning: assignment makes pointer from integer without a cast
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
>> > function ‘pvr2_v4l2_read’:
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1403:
>> > error: implicit declaration of function ‘kmalloc’
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1403:
>> > warning: assignment makes pointer from integer without a cast
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
>> > function ‘pvr2_v4l2_create’:
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1610:
>> > warning: assignment makes pointer from integer without a cast
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1618:
>> > warning: assignment makes pointer from integer without a cast
>> > /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1623:
>> > warning: assignment makes pointer from integer without a cast
>> > make[2]: *** [/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.o]
>> > Error 1
>> > make[1]: *** [_module_/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver]
>> > Error 2
>> > make[1]: Leaving directory `/usr/src/kernels/linux-2.6.34-rc5'
>> > _______________________________________________
>> > pvrusb2 mailing list
>> > pvrusb2 at isely.net
>> > http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
>> >
>>
>>
>
> --
>
> Mike Isely
> isely @ isely (dot) net
> PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8
> _______________________________________________
> pvrusb2 mailing list
> pvrusb2 at isely.net
> http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
>
>


More information about the pvrusb2 mailing list