[ivtv-devel] linux/ivtv.h:48: error: expected ':', ',', '; ', '}' or?'__attribute__' before '*' token

Hans Verkuil hverkuil at xs4all.nl
Mon Aug 11 13:34:54 CEST 2008


> On Mon, Aug 11, 2008 at 01:59:10PM +0300, Axel Thimm wrote:
>> On Mon, Aug 11, 2008 at 08:05:48AM +0200, Hans Verkuil wrote:
>> > On Monday 11 August 2008 06:47:20 Axel Thimm wrote:
>> > > linux/ivtv.h:48: error: expected ':', ',', ';', '}' or
>> > > '__attribute__' before '*' token
>> > >
>
>> > Which kernel will fedora 10 be using? 2.6.27? Since that kernel strips
>> > __user from headers when it installs them.
>>
>> Yes, it will be 2.6.27, currently at 2.6.27rc2.git1.
>>
>> > That means that when ivtv.h is included the #define __user in
>> > videodev2.h was also stripped so the __user attribute as used in
>> ivtv.h
>> > is no longer known and the compiler trips on that. The fix is to
>> remove
>> > __user from ivtv.h.
>>
>> OK, thanks! I'll do that conditionally for F10 upwards.
>
> Or would it hurt stripping __user always, e.g. for F9 (2.6.25.x based)
> as well?

Probably that's OK. The __user attribute is a kernel annotation, so it is
only relevant when compiling drivers. For applications it is not used.

The ivtv for 2.6.25 only contains the saa717x driver and that one does not
include ivtv.h so it shouldn't matter.

Regards,

        Hans




More information about the ivtv-devel mailing list