Re: [PATCH] locking/arch: Rewrite local_add_unless as static inline function
From: Uros Bizjak
Date: Mon Aug 07 2023 - 12:37:01 EST
On Mon, Aug 7, 2023 at 6:13 PM Christophe Leroy
<christophe.leroy@xxxxxxxxxx> wrote:
>
>
>
> Le 31/07/2023 à 10:42, Uros Bizjak a écrit :
> > Rewrite local_add_unless as a static inline function with boolean
> > return value, similar to arch_atomic_add_unless arch fallbacks.
> >
> > The function is currently unused.
>
> Is it worth keeping the function if it is not used ?
We already have plenty of these kinds of unused locking functions in
arch/*/include/asm/atomic.h, so I thought we could leave this one as
well.
Uros.