Re: [PATCH v2] maple_tree: Reorganize testing to restore module testing

From: Andrew Morton
Date: Fri Oct 28 2022 - 17:58:49 EST


On Fri, 28 Oct 2022 18:04:30 +0000 Liam Howlett <liam.howlett@xxxxxxxxxx> wrote:

> Along the development cycle, the testing code support for
> module/in-kernel compiles was removed. Restore this functionality by
> moving any internal API tests to the userspace side, as well as
> threading tests. Fix the lockdep issues and add a way to reduce memory
> usage so the tests can complete with KASAN + memleak detection. Make
> the tests work on 32 bit hosts where possible and detect 32 bit hosts in
> the radix test suite.

My x86_64 allmodconfig failed with

ERROR: modpost: "mas_find_rev" [lib/test_maple_tree.ko] undefined!

so I did this:

--- a/lib/maple_tree.c~maple_tree-reorganize-testing-to-restore-module-testing-fix
+++ a/lib/maple_tree.c
@@ -6059,7 +6059,7 @@ void *mas_find_rev(struct ma_state *mas,
/* Retries on dead nodes handled by mas_next_entry */
return mas_prev_entry(mas, min);
}
-EXPORT_SYMBOL_GPL(mas_find);
+EXPORT_SYMBOL_GPL(mas_find_rev);

/**
* mas_erase() - Find the range in which index resides and erase the entire
_