Re: [PATCH 6/7] coccinelle: atomic_as_refcounter: drop atomic_long_dec_and_lock

From: Julia Lawall

Date: Sun Aug 30 2026 - 08:39:35 EST




On Mon, 24 Aug 2026, Sang-Heon Jeon wrote:

> atomic_long_dec_and_lock() has never existed. So drop it from the rules.
>
> No functional change.

Applied

>
> Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>
> ---
> scripts/coccinelle/api/atomic_as_refcounter.cocci | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/scripts/coccinelle/api/atomic_as_refcounter.cocci b/scripts/coccinelle/api/atomic_as_refcounter.cocci
> index bbe5b2932933..af82b9e094aa 100644
> --- a/scripts/coccinelle/api/atomic_as_refcounter.cocci
> +++ b/scripts/coccinelle/api/atomic_as_refcounter.cocci
> @@ -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)
> |
> --
> 2.43.0
>
>