]> Git Repo - linux.git/commit
lib: add bitmap_{from,to}_arr64
authorYury Norov <[email protected]>
Thu, 28 Apr 2022 20:51:13 +0000 (13:51 -0700)
committerYury Norov <[email protected]>
Fri, 3 Jun 2022 13:52:58 +0000 (06:52 -0700)
commit0a97953fd2210d0ac8eb5c76f8bd08fb53b6d3d6
tree6e885d7e9e651c08d3db29539df803d48f7ae193
parente041e0ac53dd52d2d201aa87edc3adaca1085299
lib: add bitmap_{from,to}_arr64

Manipulating 64-bit arrays with bitmap functions is potentially dangerous
because on 32-bit BE machines the order of halfwords doesn't match.
Another issue is that compiler may throw a warning about out-of-boundary
access.

This patch adds bitmap_{from,to}_arr64 functions in addition to existing
bitmap_{from,to}_arr32.

CC: Alexander Gordeev <[email protected]>
CC: Andy Shevchenko <[email protected]>
CC: Christian Borntraeger <[email protected]>
CC: Claudio Imbrenda <[email protected]>
CC: David Hildenbrand <[email protected]>
CC: Heiko Carstens <[email protected]>
CC: Janosch Frank <[email protected]>
CC: Rasmus Villemoes <[email protected]>
CC: Sven Schnelle <[email protected]>
CC: Vasily Gorbik <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
include/linux/bitmap.h
lib/bitmap.c
This page took 0.055458 seconds and 4 git commands to generate.