Re: [PATCH] nios2: fix __wsum type degradation in csum_fold()
From: Keith Busch
Date: Tue Oct 13 2026 - 11:29:07 EST
On Tue, Sep 22, 2026 at 08:34:16AM -0700, Keith Busch wrote:
> From: Keith Busch <kbusch@xxxxxxxxxx>
>
> csum_fold() shifts a bitwise __wsum type, which sparse reports as
> "restricted __wsum degrades to integer". Sparse only checks the body of
> a static inline once something instantiates it, so this went unnoticed
> until a recent block layer change added the first csum_fold() caller to
> a file built on this architecture.
>
> Force cast to a __u32 for the shift, as the other architectures do.
Ping on this one?