userfaultfd: linux/userfaultfd_k.h
[linux-2.6-block.git] / include / linux / bitops.h
index 297f5bda4fdf66a798eef2b54b43cf3592e9c005..e63553386ae715d387fadd39c4e53650ce3e226e 100644 (file)
@@ -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);
 }