[Cocci] [PATCH] coccinelle: api/atomic_as_refcounter: Improve verbosity

2020-09-24 Thread Elena Reshetova
When atomic_as_refcounter script is used by 0day CI and the findings are automatically reported, the message that it gives is confusing to people. I.e. it does not actually state what should be done. Add more information to the message output. Reported-by: Dan Carpenter Signed-off-by: Elena

[Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-09-01 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 <elena.reshet...@intel.com> Acked-by: Julia Lawall <julia.law...@lip6.fr> --- scripts/coccinelle/api/atomic_as_refcounter

[Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 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 <elena.reshet...@intel.com> --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 131 ++ 1 file changed, 131 inse

[Cocci] [PATCH v4] provide rule for finding refcounters

2017-08-30 Thread Elena Reshetova
, but rule became more precise. Elena Reshetova (1): Coccinelle: add atomic_as_refcounter script scripts/coccinelle/api/atomic_as_refcounter.cocci | 131 ++ 1 file changed, 131 insertions(+) create mode 100644 scripts/coccinelle/api/atomic_as_refcounter.cocci

[Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-16 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 <elena.reshet...@intel.com> --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 133 ++ 1 file changed, 133 inse

[Cocci] [PATCH v3] provide rule for finding refcounters

2017-08-16 Thread Elena Reshetova
changes in v3: Removed unnessesary rule 4 conditions pointed by Julia. 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

[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 <elena.reshet...@intel.com> --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++ 1 file changed, 148 inse

[Cocci] [PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 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 <elena.reshet...@intel.com> --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 ++ 1 file changed, 102 inse