lib-fix-bitmap_parse-on-64-bit-big-endian-archs.patch removed from -mm tree
The patch titled
Subject: lib: fix bitmap_parse() on 64-bit big endian archs
has been removed from the -mm tree. Its filename was
lib-fix-bitmap_parse-on-64-bit-big-endian-archs.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alexander Gordeev <[email protected]>
Subject: lib: fix bitmap_parse() on 64-bit big endian archs
Commit 2d6261583be0 ("lib: rework bitmap_parse()") does not take into account order of halfwords on 64-bit big endian architectures. As result (at least) Receive Packet Steering, IRQ affinity masks and runtime kernel test "test_bitmap" get broken on s390.
---
lib/bitmap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
lib/bitmap.c renamed from lib/bitmap.c~lib-fix-bitmap_parse-on-64-bit-big-endian-archs +7 -2
@@ -741,8 +741,9 @@ int bitmap_parse(const char *start, unsiint chunks =BITS_TO_U32 (nmaskbits);u32 *bitmap = (u32 *)maskp;int unset_bit; +int chunk; -while (1 ) { +for (chunk =0 ; ; chunk++) { end =bitmap_find_region_reverse (start, end);if (start > end)break ;
@@ -750,7 +751,11 @@ int bitmap_parse(const char *start, unsiif (!chunks--)return -EOVERFLOW ; - end =bitmap_get_x32_reverse (start, end, bitmap++); +#if defined(CONFIG_64BIT ) && defined(__BIG_ENDIAN) + end =bitmap_get_x32_reverse (start, end, &bitmap[chunk ^1 ]); +#else + end =bitmap_get_x32_reverse (start, end, &bitmap[chunk]); +#endif if (IS_ERR (end))return PTR_ERR (end); }
_
Patches currently in -mm which might be from [email protected] are