diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index 004cd42a3c4d4fc723c4764d8d8ff6059dab193d..4032680e629d42c9e03af642f4853ed54638fd12 100644 --- a/include/linux/bitmap.h +++ b/include/linux/bitmap.h @@ -391,7 +391,7 @@ static __always_inline void bitmap_clear(unsigned long *map, unsigned int start, } static inline void bitmap_shift_right(unsigned long *dst, const unsigned long *src, - unsigned int shift, int nbits) + unsigned int shift, unsigned int nbits) { if (small_const_nbits(nbits)) *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift;