aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/bitmap.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/bitmap.h b/sys/compat/linuxkpi/common/include/linux/bitmap.h
index f26a0f99dc03..443cf6324642 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitmap.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitmap.h
@@ -202,7 +202,7 @@ bitmap_release_region(unsigned long *bitmap, int pos, int order)
}
static inline unsigned int
-bitmap_weight(unsigned long *addr, const unsigned int size)
+bitmap_weight(const unsigned long *addr, const unsigned int size)
{
const unsigned int end = BIT_WORD(size);
const unsigned int tail = size & (BITS_PER_LONG - 1);