MIPS: checksum: fix sparse flooding on asm/checksum.h
authorAlexander Lobakin <alobakin@pm.me>
Sat, 20 Jun 2020 09:35:00 +0000 (09:35 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 25 Jun 2020 08:37:23 +0000 (10:37 +0200)
commitff711d67b1786ec1e3e4019d615287a2e890e9ab
tree15d1f44bf8ccde34e30b9abbd5dc6bc4a5aedbc4
parent7b5f96949da771e4bc47c6dc6de16c5e738635de
MIPS: checksum: fix sparse flooding on asm/checksum.h

csum_fold() in MIPS' asm/checksum.h is another source of sparse flooding
when building different networking source code.
The thing is that only half of __wsum <--> u32 casts inside the function
is forced, which is insufficient.
Add all necessary forced typecasting to stop floods and simplify actual
bug hunting.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/checksum.h