--- zzzz-none-000/linux-4.4.60/include/asm-generic/bitops/const_hweight.h 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/include/asm-generic/bitops/const_hweight.h 2019-07-03 09:21:34.000000000 +0000 @@ -24,7 +24,7 @@ */ #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) #define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w)) -#define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) +#define hweight32(w) (__builtin_constant_p(w) ? (unsigned int)__const_hweight32(w) : __arch_hweight32(w)) #define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w)) /*