From: Liam R. Howlett Date: Tue, 20 Oct 2020 16:25:02 +0000 (-0400) Subject: maple_tree_test: Fix compile warnings X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=caf8aa05c1ace13b4b605c286e869c3696dccd56;p=users%2Fjedix%2Flinux-maple.git maple_tree_test: Fix compile warnings Signed-off-by: Liam R. Howlett --- diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index d3d2b41d4c5f3..b4d6d6ba28aff 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);