diff options
Diffstat (limited to 'lib/test_maple_tree.c')
| -rw-r--r-- | lib/test_maple_tree.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 9939be34e516..8d4c92cbdd0c 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -1898,13 +1898,16 @@ static noinline void __init next_prev_test(struct maple_tree *mt)  						   725};  	static const unsigned long level2_32[] = { 1747, 2000, 1750, 1755,  						   1760, 1765}; +	unsigned long last_index;  	if (MAPLE_32BIT) {  		nr_entries = 500;  		level2 = level2_32; +		last_index = 0x138e;  	} else {  		nr_entries = 200;  		level2 = level2_64; +		last_index = 0x7d6;  	}  	for (i = 0; i <= nr_entries; i++) @@ -2011,7 +2014,7 @@ static noinline void __init next_prev_test(struct maple_tree *mt)  	val = mas_next(&mas, ULONG_MAX);  	MT_BUG_ON(mt, val != NULL); -	MT_BUG_ON(mt, mas.index != 0x7d6); +	MT_BUG_ON(mt, mas.index != last_index);  	MT_BUG_ON(mt, mas.last != ULONG_MAX);  	val = mas_prev(&mas, 0);  |