History

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.

Matthew Wilcox (Oracle) committed 4 years ago

Commit 22f56b81 parent ac23d1a1 file · +1 −0Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t