]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6eea8ffeab634be2b635e9e0e68e1733dd14ec7c
tree15d1f44bf8ccde34e30b9abbd5dc6bc4a5aedbc4
parent6ad50aff85fab0f2f814c7d8c75c34711a6a7ac7
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