Re: [PATCH v3] coccinelle: api: add kvmalloc script

2020-08-04 Thread Julia Lawall
On Tue, 4 Aug 2020, Markus Elfring wrote: > > Changes in v3: > > - kvfree rules added > > I find it interesting to you found such an addition needed for this SmPL > script. > I imagine that it can be helpful to support such a source code search by > a separate script for the semantic patch lan

[PATCH v3] coccinelle: api: add kvmalloc script

2020-08-03 Thread Denis Efremov
Suggest kvmalloc, kvfree instead of opencoded patterns. Signed-off-by: Denis Efremov --- Changes in v2: - binary operator cmp added - NULL comparisions simplified - "T x" case added to !patch mode Changes in v3: - kvfree rules added scripts/coccinelle/api/kvmalloc.cocci | 188 ++