Re: [PATCH] nios2: fix __wsum type degradation in csum_fold()
From: Dinh Nguyen
Date: Tue Oct 13 2026 - 19:45:43 EST
On 10/13/26 10:06, Keith Busch wrote:
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?
Applied!
Sorry for the delay.
THanks,
Dinh