]> asedeno.scripts.mit.edu Git - linux.git/commit
Coccinelle: add atomic_as_refcounter script
authorElena Reshetova <elena.reshetova@intel.com>
Fri, 1 Sep 2017 09:40:20 +0000 (12:40 +0300)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Jul 2018 16:18:05 +0000 (01:18 +0900)
commitb56e5355091d799d58ce8b40fdf62dc9c2159981
treeecd536928f09f92521341531ad606d1592a0a7e7
parent9d3cce1e8b8561fed5f383d22a4d6949db4eadbe
Coccinelle: add atomic_as_refcounter script

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.reshetova@intel.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/api/atomic_as_refcounter.cocci [new file with mode: 0644]