Module Name: src
Committed By: riastradh
Date: Sun Dec 19 11:16:55 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: bitmap.h
Log Message:
Provide bitmap_alloc
Author: Maya Rashish <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/external/bsd/drm2/include/linux/bitmap.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/bitmap.h
diff -u src/sys/external/bsd/drm2/include/linux/bitmap.h:1.9 src/sys/external/bsd/drm2/include/linux/bitmap.h:1.10
--- src/sys/external/bsd/drm2/include/linux/bitmap.h:1.9 Sun Dec 19 10:57:19 2021
+++ src/sys/external/bsd/drm2/include/linux/bitmap.h Sun Dec 19 11:16:55 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: bitmap.h,v 1.9 2021/12/19 10:57:19 riastradh Exp $ */
+/* $NetBSD: bitmap.h,v 1.10 2021/12/19 11:16:55 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -36,6 +36,8 @@
#include <sys/types.h>
#include <sys/systm.h>
+#include <linux/slab.h>
+
/*
* bitmap_zero(bitmap, nbits)
*
@@ -215,4 +217,9 @@ bitmap_or(unsigned long *dst, const unsi
*dst++ = *src1++ | *src2++;
}
+static inline unsigned long *
+bitmap_zalloc(size_t size, gfp_t gfp) {
+ return kzalloc(size, gfp);
+}
+
#endif /* _LINUX_BITMAP_H_ */