From 3c98f08f3d7efbb2cfc6a9d2840fb1873e77cf7d Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Mon, 17 Dec 2018 14:14:24 -0500 Subject: [PATCH] test_maple_tree: Fix value for 32bit tests and fix check_load in double insert leaf test. Signed-off-by: Liam R. Howlett --- lib/test_maple_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 3bf22807c1a0a..a9ee97514d49e 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; } -- 2.50.1