]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bitmap: test bitmap_weight() for more
authorYury Norov <ynorov@nvidia.com>
Thu, 19 Mar 2026 00:43:46 +0000 (20:43 -0400)
committerYury Norov <ynorov@nvidia.com>
Mon, 23 Mar 2026 17:56:25 +0000 (13:56 -0400)
commite9cf8f83c9857a32494002c72b5f6e36ff4dfcd5
treec5b8b042b2ce58d07c79e8b2cce2078aa5b731a5
parentf3e9c1138e9d20677ed085107cd2872d5218e3b1
bitmap: test bitmap_weight() for more

Test the function for correctness when some bits are set in the last word
of bitmap beyond nbits. This is motivated by commit a9dadc1c512807f9
("powerpc/xive: Fix the size of the cpumask used in
xive_find_target_in_mask()").

Signed-off-by: Yury Norov <ynorov@nvidia.com>
lib/test_bitmap.c