On Mon, 8 Jul 2019 05:24:09 -0700 Michel Lespinasse <wal...@google.com> wrote:

> Syncing up with v5.2, I see that there is a new use for augmented
> rbtrees in mm/vmalloc.c which does not compile after applying my
> patchset.
> 
> It's an easy fix though:

It still doesn't build.

lib/rbtree_test.c: In function check_augmented:
lib/rbtree_test.c:225:35: error: implicit declaration of function 
augment_recompute [-Werror=implicit-function-declaration]
   WARN_ON_ONCE(node->augmented != augment_recompute(node));

I think I'll just do this:

--- 
a/lib/rbtree_test.c~augmented-rbtree-add-new-rb_declare_callbacks_max-macro-fix-2
+++ a/lib/rbtree_test.c
@@ -220,10 +220,6 @@ static void check_augmented(int nr_nodes
        struct rb_node *rb;
 
        check(nr_nodes);
-       for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) {
-               struct test_node *node = rb_entry(rb, struct test_node, rb);
-               WARN_ON_ONCE(node->augmented != augment_recompute(node));
-       }
 }
 
 static int __init rbtree_test_init(void)

although there may be something we can do here to restore the lost
coverage?

Reply via email to