From: Tom Herbert Date: Thu, 10 Dec 2015 20:37:44 +0000 (-0800) Subject: rco: Clean up casting errors X-Git-Tag: v4.5-rc1~128^2~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=369620a09bc5ab867342d51f1820c66b00d78a2c;p=thirdparty%2Fkernel%2Flinux.git rco: Clean up casting errors Fixe a couple of cast errors found by sparse. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- diff --git a/include/net/checksum.h b/include/net/checksum.h index 9fcaedf994ee2..10a16b5bd1c70 100644 --- a/include/net/checksum.h +++ b/include/net/checksum.h @@ -165,7 +165,8 @@ static inline __wsum remcsum_adjust(void *ptr, __wsum csum, csum = csum_sub(csum, csum_partial(ptr, start, 0)); /* Set derived checksum in packet */ - delta = csum_sub(csum_fold(csum), *psum); + delta = csum_sub((__force __wsum)csum_fold(csum), + (__force __wsum)*psum); *psum = csum_fold(csum); return delta;