[Ksummit-discuss] [MAINTAINERS SUMMIT] API replacement/deprecation

Jani Nikula jani.nikula at intel.com
Fri Sep 7 10:43:15 UTC 2018


On Fri, 07 Sep 2018, Julia Lawall <julia.lawall at lip6.fr> wrote:
> On Fri, 7 Sep 2018, Jani Nikula wrote:
>
>> On Fri, 07 Sep 2018, Julia Lawall <julia.lawall at lip6.fr> wrote:
>> > I came up with the following Coccinelle semantic patch.  The advantage is
>> > that it can also give a hint as to what should be done.  The intent is
>> > that it should be easily extensible.
>>
>> The only real downside that I can see is that it centralizes the
>> deprecation information in the semantic patch instead of the functions
>> themselves.
>
> It's possible to put comments in the code near the definition.  There are
> a number of occurrences of deprecated already.  People who are just
> copying code from something else may not actually look at the definition
> of all of the functions they are copying, so there should be some benefit
> to having the information somehow attached to uses.

Hmm, generate the semantic patch based on the __deprecated attributes?

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Ksummit-discuss mailing list