From: Matthew Wilcox (Oracle) Date: Thu, 3 Feb 2022 21:01:39 +0000 (-0500) Subject: XArray: Include bitmap.h from xarray.h X-Git-Tag: xarray-5.18~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=22f56b8e890d4e2835951b437bb6eeebfd1cb18b;p=users%2Fwilly%2Fxarray.git 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: 4ade0818cf04 ("tools: sync tools/bitmap with mother linux") Reported-by: Liam Howlett Signed-off-by: Matthew Wilcox (Oracle) --- diff --git a/include/linux/xarray.h b/include/linux/xarray.h index d6d5da6ed735..66e28bc1a023 100644 --- a/include/linux/xarray.h +++ b/include/linux/xarray.h @@ -9,6 +9,7 @@ * See Documentation/core-api/xarray.rst for how to use the XArray. */ +#include #include #include #include