The branch main has been updated by dumbbell:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8aa685153bd6a05f6c0f89ae067d67a00a984c05

commit 8aa685153bd6a05f6c0f89ae067d67a00a984c05
Author:     Jean-Sébastien Pédron <[email protected]>
AuthorDate: 2026-06-12 17:21:59 +0000
Commit:     Jean-Sébastien Pédron <[email protected]>
CommitDate: 2026-06-24 16:47:09 +0000

    linuxkpi: Add const qualifier to `bitmap_weight()` 1st arg
    
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D57581
---
 sys/compat/linuxkpi/common/include/linux/bitmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

Reply via email to