diff options
author | 2020-04-21 09:36:03 -0700 | |
---|---|---|
committer | 2020-04-21 09:36:03 -0700 | |
commit | 175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3 (patch) | |
tree | c7fd682de61e3c2a6cc3ba0e8881b99fafdf969c /lib/test_bitmap.c | |
parent | ARM: dts: OMAP3: disable RNG on N950/N9 (diff) | |
parent | ARM: dts: dra7: Fix bus_dma_limit for PCIe (diff) | |
download | linux-dev-175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3.tar.xz linux-dev-175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3.zip |
Merge branch 'fixes-v5.7' into fixes
Diffstat (limited to 'lib/test_bitmap.c')
-rw-r--r-- | lib/test_bitmap.c | 2 |
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); |