Liam R. Howlett and Greg Kroah-Hartman
1b6e8744ed
maple_tree: add __init and __exit to test module
...
[ Upstream commit eaf9790d3b ]
The test functions are not needed after the module is removed, so mark
them as such. Add __exit to the module removal function. Some other
variables have been marked as const static as well.
Link: https://lkml.kernel.org/r/20230518145544.1722059-20-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com >
Suggested-by: Andrew Morton <akpm@linux-foundation.org >
Cc: David Binderman <dcb314@hotmail.com >
Cc: Peng Zhang <zhangpeng.00@bytedance.com >
Cc: Sergey Senozhatsky <senozhatsky@chromium.org >
Cc: Vernon Yang <vernon2gm@gmail.com >
Cc: Wei Yang <richard.weiyang@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Stable-dep-of: 7a93c71a67 ("maple_tree: fix 32 bit mas_next testing")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-08-03 10:23:55 +02:00
Matthew Wilcox
ab3a1ffd11
radix tree test suite: Reduce kernel.h
...
Many of the definitions in the radix-tree kernel.h are redundant with
others in tools/include, or are no longer used, such as panic().
Move the definition of __init to init.h and in_interrupt() to preempt.h
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com >
2017-02-13 16:09:42 -05:00
Ross Zwisler and Linus Torvalds
eb73f7f330
radix-tree: add test for radix_tree_locate_item()
...
Add a unit test that provides coverage for the bug fixed in the commit
entitled "radix-tree: rewrite radix_tree_locate_item fix" from Hugh
Dickins. I've verified that this test fails before his patch due to
miscalculated 'index' values in __locate() in lib/radix-tree.c, and
passes with his fix.
Link: http://lkml.kernel.org/r/1462307263-20623-1-git-send-email-ross.zwisler@linux.intel.com
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com >
Cc: Hugh Dickins <hughd@google.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-05-20 17:58:30 -07:00