fs/crypto/bio.c:67:17: sparse: sparse: cast to restricted blk_status_t

Christoph Hellwig hch at lst.de
Wed Feb 25 06:15:38 PST 2026


On Tue, Feb 24, 2026 at 05:19:22PM +0000, Catalin Marinas wrote:
> It looks like sparse doesn't like the __bitwise cast to unsigned long in
> the arm64 cmxchg code. We could force the type cast, not sure whether it
> hides any real issues. Another option is to do the force cast in bio.c
> but I don't think that code is doing anything wrong:

I think that's pretty much what the other architectures do.  Note that
we have a few other places doing the same with blk_status_t, this new
code was just copy and pasted and triggered a new warning.




More information about the linux-arm-kernel mailing list