]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
maple_tree: fix testing for 32 bit builds
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 28 Aug 2025 00:30:22 +0000 (20:30 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:26 +0000 (16:55 -0700)
commit82b5fe3059a52e1419521ac32703208d03bb15e9
treeedceed954bd5ac601818e3b534a728ec9f38f876
parent39b44c8c73312ac535ffdf7c8ecd37ea07d4ef86
maple_tree: fix testing for 32 bit builds

Patch series "maple_tree: Fix testing for 32bit compiles".

The maple tree test suite supports 32bit builds which causes 32bit nodes
and index/last values.  Some tests have too large values and must be
skipped while others depend on certain actions causing the tree to be
altered in another measurable way (such as the height decreasing or
increasing).

Two tests were added that broke 32bit testing, either by compile warnings
or failures.  These fixes restore the tests to a working order.

Building 32bit version can be done on a 32bit platform, or by using a
command like: BUILD=32 make clean maple

This patch (of 2):

Some tests are invalid on 32bit due to the size of the index and last.
Making those tests depend on the correct build flags stops compile
complaints.

Link: https://lkml.kernel.org/r/20250828003023.418966-1-Liam.Howlett@oracle.com
Link: https://lkml.kernel.org/r/20250828003023.418966-2-Liam.Howlett@oracle.com
Fixes: 5d659bbb52a2 ("maple_tree: introduce mas_wr_store_type()")
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/radix-tree/maple.c