Re: [PATCH v2] RAS/AMD/ATL: Remove bitwise_xor_bits

From: Kuan-Wei Chiu
Date: Mon Nov 24 2025 - 07:10:16 EST


Hi Borislav,

On Mon, Nov 24, 2025 at 12:05:26PM +0100, Borislav Petkov wrote:
> On Mon, Nov 24, 2025 at 04:57:51PM +0800, Kuan-Wei Chiu wrote:
> > > Both LLVM/GCC support a __builtin_parity function which is functionally
> > > equivalent to the custom bitwise_xor_bits() one. Let's simplify the code by
> > > relying on the built-in. No functional changes.
> >
> > IIRC in some cases,
>
> Which are those cases?
>
> Do you have a trigger scenario?
>
I did a quick search, and I believe it was this kernel test robot
report [1] that reminded me of this compiler behavior.

[1]: https://lore.kernel.org/oe-kbuild-all/202501312159.l6jNRaYy-lkp@xxxxxxxxx/

Regards,
Kuan-Wei