Re: Suggested janitor task - remove __init/__exit from functionprototypes

From: Jan Engelhardt
Date: Tue Jan 17 2006 - 15:02:21 EST


>> >Some function prototypes (in both .h and .c files) specify attributes
>> >like __init and __exit in the prototype. gcc (at least at 3.3.3) uses
>> >the last such attribute that is actually specified, without issuing a
>> >warning.
>>
>> How does gcc 2.95 handle it, requiring __init in both spots?
>
>gcc 3.2 is now required for mainline kernel.
>
Sure, but I asked because I maintain one piece of code (ttyrpld) that
should compile for both 2.4 and 2.6. OTOH, I could use it to make people
convert to 2.6 ;-)


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/