summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2018-08-02 03:58:55 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-08-02 03:58:55 +0300
commit5d81a787bd4d896238c0c8d73d514290abd1d0d2 (patch)
tree4dc44d5247cc172b08e0e194aa395ee2282449cf /include
parent955c594ed1a729fc8b0af24d6cbd93eea1f3f46b (diff)
parentc42b65e363ce97a828f81b59033c3558f8fa7f70 (diff)
downloadlinux-5d81a787bd4d896238c0c8d73d514290abd1d0d2.tar.xz
Merge branch 'ib/4.17-bitmap' into next
Bring in bitmap API improvements.
Diffstat (limited to 'include')
-rw-r--r--include/linux/bitmap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 1ee46f492267..acf5e8df3504 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -105,6 +105,14 @@
*/
/*
+ * Allocation and deallocation of bitmap.
+ * Provided in lib/bitmap.c to avoid circular dependency.
+ */
+extern unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags);
+extern unsigned long *bitmap_zalloc(unsigned int nbits, gfp_t flags);
+extern void bitmap_free(const unsigned long *bitmap);
+
+/*
* lib/bitmap.c provides these functions:
*/