|
@@ -57,7 +57,7 @@ extern unsigned long __sw_hweight64(__u64 w);
|
|
|
(bit) < (size); \
|
|
|
(bit) = find_next_zero_bit((addr), (size), (bit) + 1))
|
|
|
|
|
|
-static __inline__ int get_bitmask_order(unsigned int count)
|
|
|
+static inline int get_bitmask_order(unsigned int count)
|
|
|
{
|
|
|
int order;
|
|
|
|
|
@@ -65,7 +65,7 @@ static __inline__ int get_bitmask_order(unsigned int count)
|
|
|
return order; /* We could be slightly more clever with -1 here... */
|
|
|
}
|
|
|
|
|
|
-static __inline__ int get_count_order(unsigned int count)
|
|
|
+static inline int get_count_order(unsigned int count)
|
|
|
{
|
|
|
int order;
|
|
|
|
|
@@ -75,7 +75,7 @@ static __inline__ int get_count_order(unsigned int count)
|
|
|
return order;
|
|
|
}
|
|
|
|
|
|
-static inline unsigned long hweight_long(unsigned long w)
|
|
|
+static __always_inline unsigned long hweight_long(unsigned long w)
|
|
|
{
|
|
|
return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
|
|
|
}
|