]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree_test: Fix compile warnings
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 20 Oct 2020 16:25:02 +0000 (12:25 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:30:36 +0000 (12:30 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/test_maple_tree.c

index d3d2b41d4c5f3fbccfbbc0f0f1bb24f910ebb3fc..b4d6d6ba28affa18fa8a23c0272bf68a4a8d6ae1 100644 (file)
@@ -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);