Re: [PATCH cmpxchg 08/14] parisc: add u16 support to cmpxchg()

From: Linus Torvalds
Date: Mon Apr 08 2024 - 16:11:11 EST


On Mon, 8 Apr 2024 at 10:50, Paul E. McKenney <paulmck@xxxxxxxxxx> wrote:
>
> And get rid of manual truncation down to u8, etc. in there - the
> only reason for those is to avoid bogus warnings about constant
> truncation from sparse, and those are easy to avoid by turning
> that switch into conditional expression.

I support the use of the conditional, but why add the 16-bit case when
it turns out we don't want it after all?

Linus