From: Lance Richardson Date: Wed, 18 Jan 2017 20:14:56 +0000 (-0500) Subject: csum: eliminate sparse warning in remcsum_unadjust() X-Git-Tag: v4.14-rc1~1463^2~365 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22fbece133b71895ca6bb66890b2d9b1ddaa908c;p=platform%2Fkernel%2Flinux-rpi.git csum: eliminate sparse warning in remcsum_unadjust() Cast second parameter of csum_sub() from __sum16 to __wsum. Signed-off-by: Lance Richardson Signed-off-by: David S. Miller --- diff --git a/include/net/checksum.h b/include/net/checksum.h index 35d0fab..aef2b2b 100644 --- a/include/net/checksum.h +++ b/include/net/checksum.h @@ -179,7 +179,7 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum, static inline void remcsum_unadjust(__sum16 *psum, __wsum delta) { - *psum = csum_fold(csum_sub(delta, *psum)); + *psum = csum_fold(csum_sub(delta, (__force __wsum)*psum)); } #endif