aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2020-04-14 09:19:50 +0200
committerMaxime Ripard <maxime@cerno.tech>2020-04-14 09:19:50 +0200
commita4721ced760684d1776bf31f7925aa41bb3f4846 (patch)
treea76e23b60ecceed68b5fa4904f677fe20e304b6e /lib/test_bitmap.c
parentdrm/bridge: analogix_dp: Split bind() into probe() and real bind() (diff)
parentLinux 5.7-rc1 (diff)
downloadlinux-dev-a4721ced760684d1776bf31f7925aa41bb3f4846.tar.xz
linux-dev-a4721ced760684d1776bf31f7925aa41bb3f4846.zip
Merge v5.7-rc1 into drm-misc-fixes
Start the new drm-misc-fixes cycle. Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'lib/test_bitmap.c')
-rw-r--r--lib/test_bitmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c
index 61ed71c1daba..6b13150667f5 100644
--- a/lib/test_bitmap.c
+++ b/lib/test_bitmap.c
@@ -278,6 +278,8 @@ static void __init test_replace(void)
unsigned int nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG);
DECLARE_BITMAP(bmap, 1024);
+ BUILD_BUG_ON(EXP2_IN_BITS < nbits * 2);
+
bitmap_zero(bmap, 1024);
bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits);
expect_eq_bitmap(bmap, exp3_0_1, nbits);