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
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
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
,
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
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
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
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
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
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