From: Liam R. Howlett Date: Mon, 17 Dec 2018 19:14:24 +0000 (-0500) Subject: test_maple_tree: Fix value for 32bit tests and fix check_load in double X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3c98f08f3d7efbb2cfc6a9d2840fb1873e77cf7d;p=users%2Fjedix%2Flinux-maple.git test_maple_tree: Fix value for 32bit tests and fix check_load in double insert leaf test. Signed-off-by: Liam R. Howlett --- diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 3bf22807c1a0..a9ee97514d49 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -201,7 +201,7 @@ static noinline void check_seq(struct maple_tree *mt) static noinline void check_double_insert_leaf(struct maple_tree *mt) { unsigned long i, j; - unsigned long huge = 50000000000; + unsigned long huge = 4000UL * 1000 * 1000; MT_BUG_ON(mt, !mtree_empty(mt)); @@ -210,7 +210,7 @@ static noinline void check_double_insert_leaf(struct maple_tree *mt) check_insert(mt, i, xa_mk_value(i)); for (j = huge; j >= i; j /= 2) { check_load(mt, j, xa_mk_value(j)); - check_load(mt, (unsigned long)(xa_mk_value(j+1)), NULL); + check_load(mt, j+1, NULL); } i /= 2; }