diff options
author | Lance Richardson <lrichard@redhat.com> | 2017-01-18 15:14:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-20 12:12:13 -0500 |
commit | 22fbece133b71895ca6bb66890b2d9b1ddaa908c (patch) | |
tree | bc1460066b4387ba3b0783f6f068f800e259026e /include | |
parent | 8d00e20221f5007cc48a45d9706622df03cf8844 (diff) | |
download | linux-22fbece133b71895ca6bb66890b2d9b1ddaa908c.tar.gz linux-22fbece133b71895ca6bb66890b2d9b1ddaa908c.tar.bz2 linux-22fbece133b71895ca6bb66890b2d9b1ddaa908c.zip |
csum: eliminate sparse warning in remcsum_unadjust()
Cast second parameter of csum_sub() from __sum16 to __wsum.
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/checksum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/checksum.h b/include/net/checksum.h index 35d0fabd2782..aef2b2bb6603 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 |