summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/bitmap.h')
-rw-r--r--kernel/include/linux/bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/linux/bitmap.h b/kernel/include/linux/bitmap.h
index ea17cca9e..9653fdb76 100644
--- a/kernel/include/linux/bitmap.h
+++ b/kernel/include/linux/bitmap.h
@@ -295,7 +295,7 @@ static inline int bitmap_full(const unsigned long *src, unsigned int nbits)
return find_first_zero_bit(src, nbits) == nbits;
}
-static inline int bitmap_weight(const unsigned long *src, unsigned int nbits)
+static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits)
{
if (small_const_nbits(nbits))
return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));