XArray: Include bitmap.h from xarray.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>

commit 22f56b8e890d4e2835951b437bb6eeebfd1cb18b upstream.

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 <liam.howlett@xxxxxxxxxx>
Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 include/linux/xarray.h | 1 +
 1 file changed, 1 insertion(+)

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 <linux/bitmap.h>
 #include <linux/bug.h>
 #include <linux/compiler.h>
 #include <linux/gfp.h>
-- 
2.35.1



Patches currently in stable-queue which might be from willy@xxxxxxxxxxxxx are

queue-5.17/xarray-update-the-lru-list-in-xas_split.patch
queue-5.17/xarray-fix-xas_create_range-when-multi-order-entry-present.patch
queue-5.17/mm-invalidate-hwpoison-page-cache-page-in-fault-path.patch
queue-5.17/mm-don-t-skip-swap-entry-even-if-zap_details-specified.patch
queue-5.17/xarray-include-bitmap.h-from-xarray.h.patch
queue-5.17/exec-force-single-empty-string-when-argv-is-empty.patch
queue-5.17/iomap-fix-iomap_invalidatepage-tracepoint.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux