radix tree test suite: put definition of bitmap_clear() into lib/bitmap.c
authorWei Yang <richard.weiyang@gmail.com>
Wed, 10 Jul 2024 17:27:01 +0000 (17:27 +0000)
committerYury Norov <yury.norov@gmail.com>
Wed, 10 Jul 2024 21:24:27 +0000 (14:24 -0700)
commit692a68ee9c3c4ab984ae45a74a7569f14222d5aa
tree1d50ed4196cc34bf51344b918c520a04681e7829
parente0eeb938adb0367de4b0946125a06142d8de7d37
radix tree test suite: put definition of bitmap_clear() into lib/bitmap.c

In tools/ directory, function bitmap_clear() is currently only used in
object file tools/testing/radix-tree/xarray.o.

But instead of keeping a bitmap.c with only bitmap_clear() definition in
radix-tree's own directory, it would be more proper to put it in common
directory lib/.

Sync the kernel definition and link some related libs, no functional
change is expected.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Matthew Wilcox <willy@infradead.org>
CC: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
tools/include/linux/bitmap.h
tools/lib/bitmap.c
tools/testing/radix-tree/Makefile
tools/testing/radix-tree/bitmap.c [deleted file]