linux/arch/nios2/include
Keith Busch b963f2345f nios2: fix __wsum type degradation in csum_fold()
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.

Fixes: eea9507a69 ("nios2: Library functions")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202609222053.5gjiJjtb-lkp@intel.com/
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
History 2026-10-13 18:37:54 -05:00
..
asm nios2: fix __wsum type degradation in csum_fold() 2026-10-13 18:37:54 -05:00
uapi/asm nios2: uapi: Remove custom asm/swab.h from UAPI 2026-01-30 16:46:17 +01:00