]> git.baikalelectronics.ru Git - kernel.git/commit
XArray: Include bitmap.h from xarray.h
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 3 Feb 2022 21:01:39 +0000 (16:01 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 3 Feb 2022 21:01:39 +0000 (16:01 -0500)
commita5b39d44e384a456b7c0f881b403cae605c84e38
tree9fb887d62f04cf0548a8500d01f2abd7614f77e9
parent5b15db336508681046cd8e9a1126065ebbf333cf
XArray: Include bitmap.h from xarray.h

xas_find_chunk() calls find_next_bit(), which is defined in find.h,
included from bitmap.h.  Inside the kernel, this isn't a problem because
bitmap.h is included from cpumask.h which is dragged in (eventually)
by gfp.h.  When building the test-suite, that doesn't happen, so we need
to include bitmap.h explicitly.

Fixes: a36adabc5a7b ("tools: sync tools/bitmap with mother linux")
Reported-by: Liam Howlett <liam.howlett@oracle.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/xarray.h