Re: [Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Julia Lawall
On Mon, 14 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci |

[Cocci] [PATCH v2] coccinelle: provide rule for finding refcounters

2017-08-14 Thread Elena Reshetova
changes in v2: Following the suggestion from Julia the first rule is split into 2. The output does not differ that much between these two versions, but rule became more precise. Elena Reshetova (1): Coccinelle: add atomic_as_refcounter script scripts/coccinelle/api/atomic_as_refcounter.cocci

[Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++ 1 file changed, 148