Re: [PATCH] Fix stk-webcam.c build against 2.6.21
- Date: Mon, 28 Jan 2008 21:21:51 +0100
- From: hermann pitton <hermann-pitton@xxxxxxxx>
- Subject: Re: [PATCH] Fix stk-webcam.c build against 2.6.21
Hi,
Am Montag, den 28.01.2008, 17:11 -0200 schrieb Mauro Carvalho Chehab:
> On Sun, 27 Jan 2008 22:56:43 +0000
> Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> > Compile-tested against 2.6.21 and 2.6.23.
> >
> > Signed-off-by: Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> >
> > diff --git a/v4l/compat.h b/v4l/compat.h
> > --- a/v4l/compat.h
> > +++ b/v4l/compat.h
> > @@ -509,6 +509,12 @@ do { \
> > .bInterfaceSubClass = (sc), .bInterfaceProtocol = (pr)
> > #endif
> >
> > +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
> > +/* from include/linux/list.h */
> > +#define list_first_entry(ptr, type, member) \
> > + list_entry((ptr)->next, type, member)
> > +#endif
> > +
> > #endif
>
> This is just a hack. I doubt that stk-webcam would work with this.
>
> stk-webcam requires, at least, kernel version 2.6.22. The proper compatibility
> code is already at v4l/versions.txt. The building system is capable of
> processing this and unselect the drivers, if you have a kernel lower than
> 2.6.22.
>
> All needed is to do "make allmodconfig" to re-generate the proper defines. This
> will auto-unselect stk-webcam, removing the compilation issue.
Mauro,
there is a typo in versions.txt, the CONFIG_ is too much.
Change it to USB_STKWEBCAM only.
We also get lots of warnings now for v4l2_i2c_attach undefined from many
modules including tuner.ko.
Cheers,
Hermann
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list