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 Define kvzalloc.



details:   https://anonhg.NetBSD.org/src/rev/407d5332d288
branches:  trunk
changeset: 1027901:407d5332d288
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:14:14 2021 +0000

description:
Define kvzalloc.

diffstat:

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

diffs (23 lines):

diff -r c6a6d4c72eb5 -r 407d5332d288 sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h  Sun Dec 19 01:14:07 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h  Sun Dec 19 01:14:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mm.h,v 1.14 2021/12/19 01:02:17 riastradh Exp $        */
+/*     $NetBSD: mm.h,v 1.15 2021/12/19 01:14:14 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -82,6 +82,13 @@
 }
 
 static inline void *
+kvzalloc(size_t size, gfp_t gfp)
+{
+
+       return kmalloc(size, gfp | __GFP_ZERO);
+}
+
+static inline void *
 kvmalloc_array(size_t nelem, size_t elemsize, gfp_t gfp)
 {
 



Home | Main Index | Thread Index | Old Index