[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <01690c3e-ffed-7a9a-a900-f2e534fd0c11@web.de>
Date: Fri, 15 Mar 2019 17:24:27 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Wen Yang <wen.yang99@....com.cn>,
Julia Lawall <julia.lawall@...6.fr>
Cc: kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>,
Coccinelle <cocci@...teme.lip6.fr>,
Gilles Muller <Gilles.Muller@...6.fr>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <michal.lkml@...kovi.net>,
Nicolas Palix <nicolas.palix@...g.fr>,
Yi Wang <wang.yi59@....com.cn>
Subject: Re: [PATCH] coccinelle: semantic patch for missing of_node_put
> +/// Find missing of_node_put
> +///
> +// Confidence: Moderate
How much would you like to improve the situation around recurring software
development concerns for such source code analysis approaches?
> +virtual report
> +virtual org
I would interpret the provided SmPL code in the way that it will not generate
adjusted (patched) C code so far.
Source code search results will be presented by these operation modes.
How do you think about to exchange the word “patch” by “code search”
at affected places (and in the subject) then?
> +@r exists@
> +local idexpression struct device_node *x;
> +identifier f;
> +statement S,S1,S2;
> +expression e,e1;
> +position p1,p2;
> +type T,T1;
> +@@
> +
> +(
> +x = f@p1(...);
How do you think about to express any more constraints for this function call?
> +... when != e = (T)x
Will it be safer to add another exclusion for the initial assignment target?
> + when != if (x) { ... of_node_put(x) ... }
I find the specification of this extra condition check questionable.
Should Masahiro Yamada be explicitly notified also for this attempt
to integrate another SmPL script?
Regards,
Markus
Powered by blists - more mailing lists