From b54baa451ba6cab234ddcee9deef774e33ccdcb1 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 20 Oct 2020 12:25:02 -0400 Subject: [PATCH] maple_tree_test: Fix compile warnings 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 d3d2b41d4c5f..b4d6d6ba28af 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -195,7 +195,7 @@ static noinline void check_new_node(struct maple_tree *mt) struct maple_node *mn; struct maple_alloc *smn; - int i, j, total, full_slots, count = 0; + int i, j, total; MA_STATE(mas, mt, 0, 0); @@ -214,7 +214,7 @@ static noinline void check_new_node(struct maple_tree *mt) MT_BUG_ON(mt, mn == NULL); MT_BUG_ON(mt, mas.alloc == NULL); MT_BUG_ON(mt, mas.alloc->slot[0] == NULL); - mas_push_node(&mas, mn); + mas_push_node(&mas, (struct maple_enode *)mn); mas_nomem(&mas, GFP_KERNEL); // free; mtree_unlock(mt); -- 2.50.1