]> git.baikalelectronics.ru Git - kernel.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)
commitaabadd68374e59820b538445803bb059963c6ec8
treeecd536928f09f92521341531ad606d1592a0a7e7
parentd6e702e274a4c72bc715da48a972b8ed2a6e57a5
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]