Date: Wed, 24 Jun 2026 16:47:51 +0000 From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 8aa685153bd6 - main - linuxkpi: Add const qualifier to `bitmap_weight()` 1st arg Message-ID: <6a3c0a37.27c75.d34c294@gitrepo.freebsd.org>
index | next in thread | raw e-mail
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 <dumbbell@FreeBSD.org> AuthorDate: 2026-06-12 17:21:59 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> 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);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3c0a37.27c75.d34c294>
