[PATCH v5 2/5] lib/test_bitmap: add tests for bitmap_{read,write}()

Alexander Potapenko glider at google.com
Mon Sep 25 05:16:37 PDT 2023


>
> +/*
> + * Test bitmap should be big enough to include the cases when start is not in
> + * the first word, and start+nbits lands in the following word.
> + */
> +#define TEST_BIT_LEN (1000)

Dunno why this didn't fire previously, but CONFIG_CPU_BIG_ENDIAN=y
kernel reports mismatches here, presumably because the last quad word
ends up partially initialized.
The easiest fix is to make TEST_BIT_LEN divisible by 64 (e.g. 1024)



More information about the linux-arm-kernel mailing list