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.
Unified · Split
| @@ -9,6 +9,7 @@ · 8 unmodified lines | ||
| 9 | 9 | * See Documentation/core-api/xarray.rst for how to use the XArray. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | +#include <linux/bitmap.h> | |
| 12 | 13 | #include <linux/bug.h> |
| 13 | 14 | #include <linux/compiler.h> |
| 14 | 15 | #include <linux/gfp.h> |