[PATCH v3 16/21] arm64: percpu: Implement preemptible void RMW ops

David Laight david.laight.linux at gmail.com
Sat Sep 5 02:03:19 PDT 2026


On Fri,  4 Sep 2026 17:17:53 +0100
Mark Rutland <mark.rutland at arm.com> wrote:

> Use the PCPU GPR infrastructure to implement all of the RMW ops which do
> not return a value.
...
>  #define __PERCPU_OP_CASE(w, sfx, name, sz, op_llsc, op_lse)		\

Isn't this definition exactly the same as __PERCPU_RET_OP_CASE() except
for s/tmp/ret/ and the 'return ret'?

Since the compiler will just ignore the unwanted return value
there is not point replicating the definition.

David



More information about the linux-arm-kernel mailing list