Re: [PATCH] KVM: arm64: fix u64_replace_bits() usage

From: Mark Brown
Date: Fri Jul 11 2025 - 05:14:06 EST


On Fri, Jul 11, 2025 at 09:53:41AM +0100, Marc Zyngier wrote:
> "Arnd Bergmann" <arnd@xxxxxxxx> wrote:

> > Yes, as far as I can tell, the warning only showed up in linux-next
> > after f66f9c3d09c1 ("bitfield: Ensure the return values of helper
> > functions are checked").

> > As far as I can tell, Ben added the check in linux/bitfield.h
> > when he sent you his version of the fix, they just ended up
> > in linux-next in the wrong order, so I ended up recreating his
> > original fix slightly differently.

> I don't think Ben's fix is in -next, as I queued it in the kvmarm
> fixes branch, which isn't pulled by -next.

We should really get that added to -next, that'll ensure it gets covered
in the pending-fixes testing coverage and avoid issues like this with
the main -next tree.

Attachment: signature.asc
Description: PGP signature