diff options
| author | Yury Norov <ynorov@nvidia.com> | 2026-03-18 20:43:47 -0400 |
|---|---|---|
| committer | Yury Norov <ynorov@nvidia.com> | 2026-03-23 13:56:25 -0400 |
| commit | 2a4d3706d864d19ba8772b7a5e74328ac5c1007d (patch) | |
| tree | d6e97c1ad6de09b617c1163ac8e8cfddaaca2a4d /include/asm-arm/hardware/git@git.tavy.me:linux.git | |
| parent | e9cf8f83c9857a32494002c72b5f6e36ff4dfcd5 (diff) | |
bitmap: exclude nbits == 0 cases from bitmap test
Bitmap API handles nbits == 0 in most cases correctly, i.e. it doesn't
dereferene underlying bitmap and returns a sane value where convenient,
or implementation defined, or undef.
Implicitly testing nbits == 0 case, however, may make an impression that
this is a regular case. This is wrong. In most cases nbits == 0 is a
sign of an error on a client side. The tests should not make such an
implression.
This patch reworks the existing tests to not test nbits == 0. The
following patch adds an explicit test for it with an appropriate
precaution.
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Diffstat (limited to 'include/asm-arm/hardware/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
