Re: Coccinelle: semantic patch for missing of_node_put

2019-05-20 Thread Julia Lawall
On Mon, 20 May 2019, Pavel Machek wrote: > Hi! > > > A semantic patch has no access to comments. The only thing I can see to > > do is to use python to interact with some external tools. For example, > > you could write some code to collect the comments in a file and the lines > > on which th

Re: Coccinelle: semantic patch for missing of_node_put

2019-05-09 Thread Markus Elfring
> It's interesting to get the function list automatically. I occasionally imported code data into list variables or even database tables. > I'll try to parse the drivers/of/base.c file based on comments like this > "* Returns a node pointer with refcount incremented, use > * of_node_put() on it