Merge tag 'usb-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux-2.6-microblaze.git] / include / linux / bitops.h
index 9acf654..99f2ac3 100644 (file)
@@ -72,7 +72,7 @@ static inline int get_bitmask_order(unsigned int count)
 
 static __always_inline unsigned long hweight_long(unsigned long w)
 {
-       return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
+       return sizeof(w) == 4 ? hweight32(w) : hweight64((__u64)w);
 }
 
 /**