Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Provide bitmap_alloc



details:   https://anonhg.NetBSD.org/src/rev/61652213062f
branches:  trunk
changeset: 1028540:61652213062f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:16:55 2021 +0000

description:
Provide bitmap_alloc


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/include/linux/bitmap.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r dc0917d0fc71 -r 61652213062f sys/external/bsd/drm2/include/linux/bitmap.h
--- a/sys/external/bsd/drm2/include/linux/bitmap.h      Sun Dec 19 11:16:48 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/bitmap.h      Sun Dec 19 11:16:55 2021 +0000
@@ -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 @@
                *dst++ = *src1++ | *src2++;
 }
 
+static inline unsigned long *
+bitmap_zalloc(size_t size, gfp_t gfp) {
+       return kzalloc(size, gfp);
+}
+
 #endif  /* _LINUX_BITMAP_H_ */



Home | Main Index | Thread Index | Old Index