diff --git a/include/net/checksum.h b/include/net/checksum.h index 35d0fabd2782618603bcd051c34750db53b9742f..aef2b2bb6603fa5c308c7aca4c1ef9d47d6496f9 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