]> git.hungrycats.org Git - linux/commitdiff
coccinelle: atomic_as_refcounter: drop atomic_long_dec_and_lock
authorSang-Heon Jeon <ekffu200098@gmail.com>
Sun, 23 Aug 2026 16:18:18 +0000 (01:18 +0900)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sun, 30 Aug 2026 12:17:25 +0000 (14:17 +0200)
atomic_long_dec_and_lock() has never existed. So drop it from the rules.

No functional change.

Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/api/atomic_as_refcounter.cocci

index bbe5b293293352fc0e47c159a4a34fa05b6edc61..af82b9e094aa79b8dc2109a93ee1e28b4cf92dc5 100644 (file)
@@ -26,8 +26,6 @@ identifier fname6 =~ ".*call_rcu.*";
  atomic_dec_and_test@p1(&(a)->x)
 |
  atomic_dec_and_lock@p1(&(a)->x, ...)
-|
- atomic_long_dec_and_lock@p1(&(a)->x, ...)
 |
  atomic_long_dec_and_test@p1(&(a)->x)
 |
@@ -69,8 +67,6 @@ identifier fname =~ ".*free.*";
  atomic_dec_and_test@p1(&(a)->x)
 |
  atomic_dec_and_lock@p1(&(a)->x, ...)
-|
- atomic_long_dec_and_lock@p1(&(a)->x, ...)
 |
  atomic_long_dec_and_test@p1(&(a)->x)
 |