diff options
| author | Keith Busch <kbusch@kernel.org> | 2026-09-22 08:34:16 -0700 |
|---|---|---|
| committer | Dinh Nguyen <dinguyen@kernel.org> | 2026-10-13 18:37:54 -0500 |
| commit | b963f2345fa20417401c51a69dedb6a58eea33a9 (patch) | |
| tree | dc83e5a0132452025248400948d227ae2bd7d027 /include/uapi/linux | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
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: eea9507a69d6 ("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>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
